This document describes an automatic railway gate control system with high-speed alerting. The system uses IR sensors to detect approaching and passing trains. When a train is detected approaching, the system activates an alarm to warn people and closes the railway gate. It then opens the gate once the train has passed through the 500m IR sensor. The system aims to provide unmanned and safer control of railway gates to prevent accidents at level crossings. It is built using IR sensors, motors, an alarm, LCD display, and a microcontroller for automated operation without human error.