Hi,
It is clear from the error displayed that there is an issue with the method that you called the send_email function.
“Error send_email() missing 1 required positional argument: body”
If you look into the course, then it explains that you have to call the send email function with 2 arguments. Like:
response = mailer.send_email("Alert", "The Current temperature sensor value is " +str(sensor_value))
Where as your code is only using 1 argument “Alert!someone turned on the lights”. Change this to
“Alert!”, “Someone turned on the lights” and your issue will be resolved. (Notice the ‘,’ between the strings).