fixes sgp30 sensor not displaying data

This commit is contained in:
sietse jonker
2024-02-28 09:40:06 +01:00
parent 3afc7797ab
commit 1d76c5ff7a

View File

@@ -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();