import machine
import time
switch_오 = machine.Pin(20, machine.Pin.IN)
switch_윈 = machine.Pin(19, machine.Pin.IN)
while True:
if switch_오.value()==1:
print("오른쪽에 있습니다.")
time.sleep(0.5)
elif switch_윈.value()==1:
print("왼쪽에 있습니다.")
time.sleep(0.5)