This document describes an automatic railway gate control system using infrared sensors. The system uses a microcontroller, IR transmitters and receivers, a stepper motor, and LCD display. It aims to overcome issues with manual gate control like human error and delays. When a train approaches, the IR sensors detect it and send a signal to the microcontroller. The microcontroller then controls the stepper motor to automatically open and close the gate. This system reduces risks at unmanned railway crossings by automating the gate operation.