from lcd1602 import LCD
import time
lcd=LCD()
while True:
temp = input('Temerature ? ')
lcd.clear()
msg1= 'Temperature : ' + temp
lcd.write(0,0,msg1)
temp = int(temp)
if temp < 15:
msg2 = 'Heat Up!'
elif 15 <= temp <= 30 :
msg2 = 'Heater/Cool Off'
else:
msg2 = 'Cool Down'
lcd.write(0,1,msg2)
time.sleep(2)