# writ a micropython script to read the data from a potential
# meter conntec to gpoi 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(35))
pot.atten(ADC.ATTN_11DB)
while True:
pot_value=pot.read()
print(pot_value)
sleep(0.5)