Whenever motion is detected, the raspberry pi sets off an alarm and sends an email to the user. To send the email I had to use a USB WiFi adapter to give the RaspberryPi internet access. Then I used the smtp library in python to access my Gmail account. At first I was unable to login through the python script because Gmail uses a 2-step verification. However, I was able to create an app password that allowed the RaspberryPi to access the account with only a username and password.

Built With

Share this project:
×

Updates