Based on another DHT library, this is just a modified one without using the RTC component
Diff: main.cpp
- Revision:
- 3:8c402316ce7e
- Parent:
- 1:6df9454191d4
--- a/main.cpp Thu Dec 27 21:38:08 2018 +0000
+++ b/main.cpp Sun Jan 06 03:08:10 2019 +0000
@@ -22,7 +22,9 @@
Terminal.printf("\rReading DHT ... ");
error_code = dht.readData();
if (error_code){
- Terminal.printf("\r\nError Code: %d \r\n", error_code);
+ Terminal.printf("\r\nError Code: %d \r\n", error_code);
+ Terminal.printf("\r\n");
+
Terminal.printf("\r\nData: %d %d %d %d %d \v\v\v\v", dht.DHT_data[0], dht.DHT_data[1],dht.DHT_data[2], dht.DHT_data[3], dht.DHT_data[4]);
}
else{