#import RPi.GPIO as GPIO
#import time
from machine import Pin
from utime import sleep
PIR=Pin(26,Pin.IN)
myled=Pin(3,Pin.OUT)
print("hello")
while True:
#I=GPIO.input(26)
I=PIR.value()
if I==0:
print("No Intruder")
#GPIO.output(3,0)
myled.value(0)
sleep(0.5)
elif I==1:
print("Intruder Detected")
#GPIO.output(3,1)
myled.value(1)
sleep(0.5)