# write a micropython script to read the data from a potentiometer conected to gpio 34
# with a rate of 0.5 second and to print the same on shell window.
from machine import Pin, ADC
from time import sleep
Pot = ADC(Pin(34))
Pot.atten(ADC.ATTN_11DB)
Pot.width(ADC.WIDTH_10BIT)
while True:
Pot_value = Pot.read()
print(Pot_value)
sleep(0.1)