diff --git a/src/webserver.ino b/src/webserver.ino index aeb0c62..526a081 100644 --- a/src/webserver.ino +++ b/src/webserver.ino @@ -39,6 +39,13 @@ void setup() pinMode(Constants::ledPin, OUTPUT); + // First sensors reads to initialize values + for (int i = 0; i < 5; i++) + { + g_thermistor.read(); + g_photoresistor.read(); + } + /** * @brief Connect to WiFi. */