from machine import Pin
import utime
led = Pin(16, Pin.OUT) #GPIO Number Can Be Changed
pir = Pin(15, Pin.IN, Pin.PULL_UP) #GPIO Number Can Be Changed
led.low()
utime.sleep(3)
while True:
print(pir.value())
if pir.value() == 0:
print("LED Is On")
led.high()
utime.sleep(5)
else:
print("Waiting For Sensor Movement")
led.low()
utime.sleep(0.2)