from machine import Pin
from utime import sleep
PIR=Pin(26,Pin.IN)
myled=Pin(3,Pin.OUT)
print("Hello,pi pico")
while True:
  I=PIR.value()
  if I==0:
    print("No intruders")
    myled.value(0)
    sleep(0.5)
  elif I==1:
    print("Intruder detected")
    myled.value(1)
    sleep(0.5)  
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT