Raspberry Pi - Automation and Scheduling
What is wrong with this code snippet for sending an email alert?
import smtplib
sensor_value = 85
if sensor_value > 80:
smtp = smtplib.SMTP('smtp.gmail.com', 587)
smtp.sendmail(from_addr, to_addr, message)
smtp.quit()