from machine import Pin,ADC
from time import sleep
pot=ADC(Pin(34))
pot.width(ADC.WIDTH_10BIT)
pot.atten(ADC.ATTN_11DB)
while True:
    pot_value=pot.read()
    print(pot_value) 
    sleep(0.5)
    from machine import Pin,ADC
from time import sleep
pot=ADC(Pin(34))
pot.width(ADC.WIDTH_10BIT)
pot.atten(ADC.ATTN_11DB)
while True:
    pot_value=pot.read()
    print(pot_value) 
    sleep(0.5)