from machine import Pin from utime import sleep s = Pin(26,Pin.IN) while True: print(s.value()) sleep(1)