diff --git a/tempHum/tempHum.ino b/tempHum/tempHum.ino
index eec2fdcee425b1eff49def2dd9be68806603dcbe..9c3d77f1aa0108af6c556b6d53854a70849bb108 100644
--- a/tempHum/tempHum.ino
+++ b/tempHum/tempHum.ino
@@ -19,11 +19,11 @@
 #include <WiFiClient.h>
 #include <ArduinoJson.h>
 
-//#define USE_DHT
+#define USE_DHT
 //#define USE_CO2
 //#define USE_DUST
 //#define USE_BMP
-#define USE_BME
+//#define USE_BME
 #define USE_INFLUX
 
 const char* configFilePath = "/config.json";
@@ -972,7 +972,7 @@ void handle_valves() {
 
       String httpBody = "valve,location=" + sensorLocation + ",valve_id=" + String(intValve) + " value=" + String(valveState[intValve]);
 
-      http.begin(influxMeasurementsUrl);
+      http.begin(wifiClient, influxMeasurementsUrl);
       http.setTimeout(500);
       int httpCode = http.POST(httpBody);