O'Reilly logo

Raspberry Pi Sensors by Rushi Gajjar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting notified by e-mails

Even after accomplishing the previous project, it still feels as if something is missing. Why should we continuously look at the data and check whether there is a critical condition or not? We will therefore add the following functionality: every night at 12:00 a.m., the RasPi will send an e-mail stating the minimum and maximum temperatures of the day. We will get the warning e-mail by setting a threshold value of temperature whenever the critical condition arises. Suppose 30 degrees Celsius is the limit, and increasing the temperature beyond that may be the sign of a critical condition at your home.

Here, we are going to use an inbuilt Python library called smtplib to get the functionalities of sending e-mails from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required