from machine import Pin, ADC
from utime import sleep, sleep_ms
sensor_adc = ADC(Pin(39))
while True:
lectura = sensor_adc.read_u16()
regla = 80/65535
print ("Resol: {}, Temperatura: {:.2f} °C, Fahrenheit: {:.2f} °F, Kelvin: {:.2f} K" .format(lectura, regla*lectura, regla*lectura * (9/5) + 32.0, regla*lectura + 273.15))
sleep_ms(50)