from machine import Pin
import utime

pir=Pin(14, Pin.IN, Pin.PULL_DOWN)

while True:
    estado=pir.value()
    print(estado)
    utime.sleep_ms(30)