from machine import Pin from time import sleep button = Pin(22, Pin.IN, Pin.PULL_UP) #D7 button2 = Pin(23, Pin.IN, Pin.PULL_UP) #d5 while True: print(button.value(), button2.value()) sleep(0.1)