diff --git a/src/modules/Sht20.cpp b/src/modules/Sht20.cpp index 23f69508..3685df20 100644 --- a/src/modules/Sht20.cpp +++ b/src/modules/Sht20.cpp @@ -25,6 +25,7 @@ class Sht20h : public IoTSensor { Sht20h(String parameters): IoTSensor(parameters) { } void doByInterval() { + sht->read(); float value = sht->getHumidity(); regEvent((String)value, "Sht20h"); }