from machine import Pin, ADC
from utime import sleep, sleep_ms
sensor = ADC(Pin(33))
while True:
dato = sensor.read_u16()
fac= 100/65535
tem= fac*dato
#print(dato, tem)
far= (tem*1.8)+32
print("Temperatura: {:.1f} °C, {:.1f}F".format(tem,far))
sleep_ms(50)