I use DHT library. I exchange type of temperature and humid value from an integer to float.
Fork of DHT by
Diff: DHT.cpp
- Revision:
- 5:b2a9b214a03f
- Parent:
- 4:1e78a462b211
--- a/DHT.cpp Thu Jul 20 09:04:07 2017 +0000 +++ b/DHT.cpp Tue Jan 02 07:53:39 2018 +0000 @@ -136,7 +136,7 @@ float DHT::CalcTemperature() { - int v; + float v; switch (_DHTtype) { case DHT11: @@ -208,7 +208,7 @@ float DHT::CalcHumidity() { - int v; + float v; switch (_DHTtype) { case DHT11: