This document describes an automatic railway gate controlling system with signals that was designed by a group of engineering students. The system uses an ATMega8535 microcontroller and IR sensor pairs placed before level crossings to detect approaching trains. When a train is detected, the controller closes the gates until the train passes through. This automation reduces accidents by removing human error, saves time by keeping gates closed only as long as needed, and reduces costs by removing the need for human gate operators and separate departments to manage level crossings.