-
-
Save JeffersGlass/db75ebebda4c81ffaa901582f544ba12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gpiozero import MotionSensor | |
from time import sleep | |
i = 0 | |
pir = MotionSensor(19) | |
while(1): | |
pir.wait_for_motion() | |
i = i + 1 | |
print(f"Motion Detected! {i}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment