fixes sgp30 sensor not displaying data
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user