from machine import Pin
import time
button1 = Pin(5, Pin.IN, Pin.PULL_UP)#Internal pull-up
button2 = Pin(4, Pin.IN, Pin.PULL_UP)
while True:
print("=========================")
b1=button1.value()
b2=button2.value()
print("Button1: ",b1)
print("Button2: ",b2)
time.sleep(5)