w.phpclasses.org/blog/package/12182/post/2-How-to-Use-a-PHP-Raspberry-PI-GPIO-Library-To-Communicate-wi... l window in the same directory
# as pir_test.py
# use the comand: sudo paython pir_test.py
#
# NOTE: Wo... r Clean sys.exit command
import time #for sleep/pause
import RPi.GPIO as io #read the GPIO pins
io.se... while True: # endless loop, waiting for nothing. Use Control+C to exit
if io.input(pir_pin): # Waits