from machine import ADC, Pin
from time import sleep

#analog Pins are 26, 27, 28
Pot = ADC(Pin(27))

while True:
    # ADC Value starts from o to 65535
    Value = Pot.read_u16()
    print(Value)
    sleep(0.5)