update dht11.py
This commit is contained in:
2
dht11.py
2
dht11.py
@@ -53,7 +53,7 @@ def check_data():
|
||||
fan_timer_start = time.time()
|
||||
sensor_data['fan'] = True
|
||||
GPIO.output(FAN_PIN, GPIO.HIGH)
|
||||
if sensor_data['fan'] == True and fan_timer_actief == True and time.time() - fan_timer_start > 300: # 5 minuten
|
||||
elif sensor_data['fan'] == True and fan_timer_actief == True and time.time() - fan_timer_start > 300: # 5 minuten
|
||||
fan_timer_actief = False
|
||||
fan_timer_start = 0
|
||||
sensor_data['fan'] = False
|
||||
|
||||
Reference in New Issue
Block a user