This is the same exercise that we did in Chapter 7, Internet of Things with BeagleBone. The Python package flask-mail
can be used to create a local mail server inside BeagleBone to send e-mails. But to match the same example we did in Chapter 5, Reading from Analog Sensors we will use Gmail. An Internet connection is essential for this exercise. It is recommended to create a new temporary Gmail account for this exercise. You will have to visit the webpage https://myaccount.google.com/security and turn on Allow less secure apps. If you have enabled two-factor authentication, you will have to generate an app password from the same webpage. An in-depth explanation about this is covered in Chapter 7 for the same over-temperature exercise.
Create a circuit setup the same as we did for temperature sensing using TMP36 in Chapter 5, Reading from Analog Sensors. Open Cloud9. Write the following program. Change the e-mail addresses and password...