Modified DHT11 Library with floated variable to allow readings in Centigrade

Dependencies:   mbed

Dependents:   mbed_plant_rig

Fork of DHT11 by Eric Fossum

Revision:
2:65c4ca53154d
Parent:
1:5da6f6de3e42
--- a/Dht11.cpp	Mon Feb 16 01:43:08 2015 +0000
+++ b/Dht11.cpp	Mon Jul 10 15:20:33 2017 +0000
@@ -80,10 +80,10 @@
     return((_temperature * 1.8) + 32);
 }
 
-int Dht11::getCelsius() {
+float Dht11::getCelsius() {
     return(_temperature);
 }
 
-int Dht11::getHumidity() {
+float Dht11::getHumidity() {
     return(_humidity);
 }