From 00ac1e590350b0e1d401bd9edb5bb7ceab93722c Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Sun, 27 Dec 2015 07:16:27 +0100 Subject: [PATCH] fixed bug in temperature reader --- controller/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/controller.py b/controller/controller.py index f1b82b3..ae37883 100644 --- a/controller/controller.py +++ b/controller/controller.py @@ -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