from machine import Pin
from time import sleep

Led = Pin(0, Pin.OUT)
IR_sensor = Pin(10, Pin.IN)


while True:
    print(IR_sensor.value())
    sleep(0.1)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT