From 1d76c5ff7a10f63bfc8888404c5025de1572f819 Mon Sep 17 00:00:00 2001 From: sietse jonker Date: Wed, 28 Feb 2024 09:40:06 +0100 Subject: [PATCH] fixes sgp30 sensor not displaying data --- arduino/node-code/node-code-final.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arduino/node-code/node-code-final.ino b/arduino/node-code/node-code-final.ino index 5fdb07e..f20a4a0 100644 --- a/arduino/node-code/node-code-final.ino +++ b/arduino/node-code/node-code-final.ino @@ -158,8 +158,6 @@ void update(){ // read dht11 sensor temperature = float(dht.readTemperature()); humidity = float(dht.readHumidity()); - - } // function to display data on oled screen @@ -202,6 +200,9 @@ void setup() { // loop function void loop() { + // check for errors + checkForError(); + // loop the websocket connection so it stays alive webSocket.loop();