from gpiozero import MotionSensor

pir = MotionSensor("BOARD7")

while True:
    pir.wait_for_motion()
    print("Motion Detected")
    pir.wait_for_no_motion()
    print("No Motion")

9ff2efd424a58a7f59469731a944123bf534bd17
<mask token>

<mask token>
while True:
    pir.wait_for_motion()
    print('Motion Detected')
    pir.wait_for_no_motion()
    print('No Motion')

<mask token>
pir = MotionSensor('BOARD7')
while True:
    pir.wait_for_motion()
    print('Motion Detected')
    pir.wait_for_no_motion()
    print('No Motion')

from gpiozero import MotionSensor
pir = MotionSensor('BOARD7')
while True:
    pir.wait_for_motion()
    print('Motion Detected')
    pir.wait_for_no_motion()
    print('No Motion')

from gpiozero import MotionSensor

pir = MotionSensor("BOARD7")

while True:
    pir.wait_for_motion()
    print("Motion Detected")
    pir.wait_for_no_motion()
    print("No Motion")
