import machine
import time
RELAY = 4
SWITCH = 13
relay = machine.Pin(RELAY, machine.Pin.OUT)
switch = machine.Pin(SWITCH, machine.Pin.IN, machine.Pin.PULL_UP)
print("Hello Christ")
while True:
if switch.value() == 0:
relay.value(1)
print("LED: ON")
else:
relay.value(0)
print("LED: OFF")
time.sleep(0.1)