fixes sgp30 sensor not displaying data
This commit is contained in:
@@ -158,8 +158,6 @@ void update(){
|
|||||||
// read dht11 sensor
|
// read dht11 sensor
|
||||||
temperature = float(dht.readTemperature());
|
temperature = float(dht.readTemperature());
|
||||||
humidity = float(dht.readHumidity());
|
humidity = float(dht.readHumidity());
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// function to display data on oled screen
|
// function to display data on oled screen
|
||||||
@@ -202,6 +200,9 @@ void setup() {
|
|||||||
|
|
||||||
// loop function
|
// loop function
|
||||||
void loop() {
|
void loop() {
|
||||||
|
// check for errors
|
||||||
|
checkForError();
|
||||||
|
|
||||||
// loop the websocket connection so it stays alive
|
// loop the websocket connection so it stays alive
|
||||||
webSocket.loop();
|
webSocket.loop();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user