from machine import ADC
import utime
sensor2= ADC(4)
sensor= ADC(1)
while True:
#Bits -> Digital
valor2=sensor2.read_u16()
valor=sensor.read_u16()
#Voltaje
voltaje= valor2*3.3/65535
voltaje1= valor*3.3/65535
#temperatura
T = 27 - (voltaje - 0.706)/0.001721
temp= 10* voltaje1
print("temperatura", T, "c°"," temperatura LM35", temp, "C°" )
utime.sleep_ms(500)