August 29, 2024, 13:53
python from gpiozero import MotionSensor import time pir = MotionSensor(17) while True: pir.wait_for_motion() print("motion") time.sleep(1) pir.wait_for_no_motion print("nomotion") time.sleep(1)problem i am occuring: the console even thought there is no movement says i there is movement or no movement.