def measurement_from_bme680(timestamp, measurement, temperature, pressure, humidity, geohash, location):
    """Turn the BME680 object into a set of influx-db compatible measurement object"""

    return {
        "measurement": str(measurement),
        "tags": {
            "sensor": "bme680",
            "location": str(location),
            "geohash": str(geohash),
        },
        "time": timestamp,
        "fields": {
            "temperature": float(temperature),
            "pressure": float(pressure),
            "humidity": float(humidity)
        }
    }