The aim of this study is to make an automated exchangeable railway track at junction crossing and centralized monitoring system to detect the exact position of the train for safety surveillance as well as efficient railway scheduling and changeable railway routes. In this study, the proposed model is based on Arduino microcontroller to reduce complexity and execution cost. Infrared sensors have been employed to track down the position of the moving train. DC motor along with manually-made linear actuator has been used to control the switch gate movement. Total system can be monitored and visualized by a software that shows train position. There is also a scope for statistical data collection and implementation. This system can work both automatically and manually from the control room. This model works for multi-junction railway tracks and one or more train moving along the track simultaneously.