Today many accidents occur because everyone is in hurry and we do not see the signal and crosses the railway line. So to solve this we can install this simple circuit which will give an red indicator when train is nearby and green indicator when train goes away from platform. For this we are using the reed switch as sensor.
Fig. 1: Prototype of Crossong Light Indicator Circuit on Breadboard