DHT11 used for Temperature & Humidity sensor.

Dependents:   LoRaWAN_mbed_lmic_agriculture_app

Fork of DHT by Components

Files at this revision

API Documentation at this revision

Comitter:
GTsapparellas
Date:
Wed Apr 11 19:42:32 2018 +0000
Parent:
4:0c34c98a87ec
Commit message:
version 1.0 Commenting

Changed in this revision

DHT.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/DHT.cpp	Mon Apr 02 12:06:29 2018 +0000
+++ b/DHT.cpp	Wed Apr 11 19:42:32 2018 +0000
@@ -167,7 +167,8 @@
     }
 
     // Uncomment to see the checksum error if it exists
-    //pc.printf(" 0x%02x + 0x%02x + 0x%02x + 0x%02x = 0x%02x \n", DHT_data[0], DHT_data[1], DHT_data[2], DHT_data[3], DHT_data[4]);
+    // pc.printf(" 0x%02x + 0x%02x + 0x%02x + 0x%02x = 0x%02x \n", DHT_data[0],
+    // DHT_data[1], DHT_data[2], DHT_data[3], DHT_data[4]);
     data_valid = DHT_data[0] + DHT_data[1] + DHT_data[2] + DHT_data[3];
     if (DHT_data[4] == data_valid) {
         _lastReadTime = currentTime;