DHT11 used for Temperature & Humidity sensor.
Dependents: LoRaWAN_mbed_lmic_agriculture_app
Fork of DHT by
Diff: DHT.cpp
- Revision:
- 5:e7e3db429c9e
- Parent:
- 4:0c34c98a87ec
diff -r 0c34c98a87ec -r e7e3db429c9e DHT.cpp --- 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;