+ sendToInfluxDB("temperature,city="+city+",location="+location, "value", String(event.temperature));
+ double water_dist = distanceSensor.measureDistanceCm(event.temperature);
+ #if defined(DEBUG)
+ Serial.println("Distance: "+String(water_dist));
+ #endif
+ sendToInfluxDB("water_well,city="+city+",location="+location, "distance", String(water_dist));
+ }
+ dht.humidity().getEvent(&event);
+ if (isnan(event.relative_humidity)) {
+ #if defined(DEBUG)
+ Serial.println("DHT 22 humidity error");
+ #endif
+ } else {
+ #if defined(DEBUG)
+ Serial.println("Humidity: "+String(event.relative_humidity));
+ #endif
+ sendToInfluxDB("humidity,city="+city+",location="+location, "value", String(event.relative_humidity));