from gpiozero import MotionSensor
pir = MotionSensor(4)

while True:
    pir.wait_for_motion()
    print("The movement is reported")
    pir.wait_for_no_motion()
61cc40d1fb7714aa54b97de2628135b84dc2e9cc
<mask token>

<mask token>
while True:
    pir.wait_for_motion()
    print('The movement is reported')
    pir.wait_for_no_motion()

<mask token>
pir = MotionSensor(4)
while True:
    pir.wait_for_motion()
    print('The movement is reported')
    pir.wait_for_no_motion()

from gpiozero import MotionSensor
pir = MotionSensor(4)
while True:
    pir.wait_for_motion()
    print('The movement is reported')
    pir.wait_for_no_motion()

from gpiozero import MotionSensor
pir = MotionSensor(4)

while True:
    pir.wait_for_motion()
    print("The movement is reported")
    pir.wait_for_no_motion()