wait a moment if DHT can't be reached

This commit is contained in:
Ronald Schaten 2016-04-23 00:14:39 +02:00
parent 41793dd3c4
commit 9b9e8db96a

View File

@ -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;
} }