wait a moment if DHT can't be reached
This commit is contained in:
parent
41793dd3c4
commit
9b9e8db96a
@ -28,6 +28,7 @@ void DeviceDht::deviceLoop() {
|
|||||||
// check if any reads failed and exit early
|
// check if any reads failed and exit early
|
||||||
if (isnan(humidity) || isnan(temperature)) {
|
if (isnan(humidity) || isnan(temperature)) {
|
||||||
Serial.println("Failed to read from DHT sensor!");
|
Serial.println("Failed to read from DHT sensor!");
|
||||||
|
delay(500);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user