def measurement_from_sds011(timestamp, measurement, pm25, pm100, geohash, location):
    """Turn the SDS011 object into a set of influx-db compatible measurement object"""

    return {
        "measurement": str(measurement),
        "tags": {
            "sensor": "sds011",
            "location": str(location),
            "geohash": str(geohash),
        },
        "time": timestamp,
        "fields": {
            "pm25": float(pm25),
            "pm100": float(pm100)
        }
    }