import time
time.sleep(0.1) # Wait for USB to become ready
print("Taller")
from machine import Pin, ADC
import time
time.sleep(0.1)
potenciometro = ADC(Pin(26))
diodoled = Pin(15,Pin.OUT)
while True:
v = potenciometro.read_u16()
temp = v*70/65535 + 10
print ("Temperatura actual:" + str (temp))
if( temp <= 40 ):
diodoled.value(0)
if( temp > 40 ):
diodoled.value(1)