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 0 to 65535
    value = pot.read_u16()
    print(value)
    sleep(0.5)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT