fixed bug in temperature reader

This commit is contained in:
Senad Uka
2015-12-27 07:16:27 +01:00
parent 6951243443
commit 00ac1e5903

View File

@@ -17,7 +17,7 @@ else:
# Try to grab a sensor reading. Use the read_retry method which will retry up
# to 15 times to get a sensor reading (waiting 2 seconds between each retry).
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
humidity, temperature = Adafruit_DHT.read_retry(SENSOR_TYPE, GPIO_PIN)
# Un-comment the line below to convert the temperature to Fahrenheit.
# temperature = temperature * 9/5.0 + 32