from machine import Pin
from time import sleep
potPin = 28
myPot=machine.ADC(potPin)
myLED = Pin(15,Pin.OUT)
myLED2 = Pin(14,Pin.OUT)
myLED3 = Pin(13,Pin.OUT)
while True:
potValue = myPot.read_u16()
temp = 100/65535 * potValue -(0*100/65535)
print (temp)
sleep(.5)
if temp <= 70:
myLED.value(0)
myLED2.value(0)
myLED3.value(1)
if temp > 70 and temp <= 90:
myLED.value(0)
myLED2.value(1)
myLED3.value(0)
if temp > 90:
myLED.value(1)
myLED2.value(0)
myLED3.value(0)