This is my project 4 using Arduino.
This will alert you when the gate is open so you can go close it.