from machine import Pin,ADC,PWM
import time
pot=ADC(Pin(27))
led=Pin(5,Pin.OUT)
realy=Pin(6,Pin.OUT)
c = 3.3/65535
while True:
print(realy.value())
value=pot.read_u16()
v=value*c
print(value)
print (v)
if value>50255:
led.off()
else:
led.on()
realy.on()
time.sleep(1)