First place overall winner of Hoya Hacks 2022, DigiKey best hardware hack, and Pandemic year 2 social impact award
Check out the devpost submission here: https://devpost.com/software/arduino-security-system
Smart Arduino Home Security System is exactly what it sounds like. It's a portable security system using a Raspberry Pi as the main computer system. When the sensors are tripped by unwanted intruders, an Arduino signal causes an immediate email to be sent by the Pi to an address of your choosing.
We used PyFirmata libraries to interface between the Pi and Arduino, and an ultrasonic ranging module as the sensor. The sensor takes a few seconds to calibrate the distance between itself and the nearest wall, and reports and irregularities it finds while it is running.
Step 3. Insert receiver email, and sender email and password into mail_protocol.py (this is needed to send the alerts)
(don't worry, the password in the repo is just a dummy password)
chmod +x sensor_read.py
python3 sensor_read.py
Credits to Alan Yorinks for the PyFirmata library: https://github.com/MrYsLab/pymata4