Safe railway crossing. Never watch your steps again! The signal reads the state of the gate, trains will stop if the engineer is near the crossing. : r/factorio
Tutorial:Train signals - Factorio Wiki
Help With Two-Way Railway X junction - Factorio Forums