Project 10: no json object could be detected in output

When my sensor reading crosses the maximum value then it does’t give an email alert. It shows “NO JSON OBJECT COULD BE DETECTED”

Screenshot%20(48)

i set the maximum value as 340.

Hi @gaman1802

Once check your conf.py file.

i didn’t get your point can u please explain in detail?

email_conf.py file is ok

where? , i did’t get your point please explain me in detail.

Hi @gaman1802,

To debug the issue, print the response from the Mailgun. Add a print statement, just after the mailer.send_email() line.

response = mailer.send_email(.....)
print (response.text)

and then share the screenshot of the output. Most probably this error occurs when you typed the incorrect details in the emai_conf.py file for Mailgun.

Do let me know in case you need further assistance.