from machine import Pin, ADC
adc = ADC(Pin(35))
adc.atten(ADC.ATTN_11DB)
adc.width(ADC.WIDTH_10BIT)
while True:
val = adc.read()
volts = (3.3*val)/1023
input_voltage = "The voltage is {:0.3f} and the raw is {:4d}"
print(input_voltage.format(val, volts), end = "\r")