From 9b9e8db96a11900ee58322174012e7e0f842518c Mon Sep 17 00:00:00 2001 From: Ronald Schaten Date: Sat, 23 Apr 2016 00:14:39 +0200 Subject: [PATCH] wait a moment if DHT can't be reached --- things/DeviceDht.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/things/DeviceDht.cpp b/things/DeviceDht.cpp index 1027e2d..b2fb9c6 100644 --- a/things/DeviceDht.cpp +++ b/things/DeviceDht.cpp @@ -28,6 +28,7 @@ void DeviceDht::deviceLoop() { // check if any reads failed and exit early if (isnan(humidity) || isnan(temperature)) { Serial.println("Failed to read from DHT sensor!"); + delay(500); return; }