This document proposes an automatic railway gate control system using a microcontroller. It describes the current manual system's issues with wasted time and errors. The automatic system would use a sensor set including IR, sound and thermal sensors to detect arriving and departing trains. When a train is detected, it would provide warning signals to road users, close the gate, change the train signal, and open the gate once the train departs, to improve safety and efficiency over the manual system. The microcontroller would run the control logic and algorithm to coordinate the sensors and gate/signal operations.