from machine import Pin
from time import sleep
switch1 = Pin(2, Pin.IN)
led = Pin(14, Pin.OUT)
while True:
sw1_state = switch1.value()
print("Switch1 State: ", sw1_state)
led.value(0)
if sw1_state == 1 and sw2_state == 1:
led.value(1)
sleep(0.2)