from machine import ADC from time import sleep_ms a2d2 = ADC(2) k = 20.0 / 65520 while(1): a2 = a2d2.read_u16() V2 = k * (a2 - 32767) print(V2, ' Volts') sleep_ms(200)