import machine
from time import sleep
potPin=26
myPot=machine.ADC(potPin)
while True:
potVal=myPot.read_u16()
voltage=((-100)/65103*potVal)+(6553500/65103)
print(voltage)
sleep(.5)
import machine
from time import sleep
potPin=26
myPot=machine.ADC(potPin)
while True:
potVal=myPot.read_u16()
voltage=((-100)/65103*potVal)+(6553500/65103)
print(voltage)
sleep(.5)