from machine import Pin 
from time import sleep
btn=Pin(0,Pin.IN)
while(1):
    print(btn.value())
    sleep(.5)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT