@@ -18,4 +18,10 @@ while True:
humidity = sensor.humidity
except RuntimeError as err:
print(err.args[0])
if temperatuur_C > 20:
GPIO.output(LED_PIN, GPIO.HIGH)
GPIO.output(FAN_PIN, GPIO.HIGH)
else:
GPIO.output(LED_PIN, GPIO.LOW)
GPIO.output(FAN_PIN, GPIO.LOW)
time.sleep(2.0)
The note is not visible to the blocked user.