from machine import Pin, ADC
from time import sleep
pot=ADC(Pin(34))
pot.atten(ADC.ATTN_11DB)    #voltage range 3.3V

while True:
    Pot_value = pot.read()
    print(Pot_value)
    sleep(0.2)