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) 
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT
NOCOMNCVCCGNDINLED1PWRRelay Module