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