Library for DHT11 DHT22 AM2302 and similar sensors. Now with value after decimal point for DHT22.

Dependents:   Seeed_Grove_Temp_Humidity_Example DHT11_Temp_Humidity IoT_W5500_MQTT

Fork of DHT by Components

Revision:
1:25c96950b6ed
Parent:
0:9b5b3200688f
Child:
2:df22ddf10d75
--- a/DHT.cpp	Mon Jul 09 19:47:43 2012 +0000
+++ b/DHT.cpp	Wed Jul 24 06:59:28 2013 +0000
@@ -55,7 +55,7 @@
     for (i = 0; i < DHT_DATA_BIT_COUNT; i++) {
         bitTimes[i] = 0;
     }
-
+#if 0
     if (!_firsttime) {
         if (int(currentTime - _lastReadTime) < 2) {
             err = ERROR_NO_PATIENCE;
@@ -65,6 +65,7 @@
         _firsttime=false;
         _lastReadTime=currentTime;
     }
+#endif
     retryCount = 0;
 
     do {