I'm beginner as railways diorama, but I want to help the passionate peoples.
First project with railway crossing system was for a manual control.
System control 2 servos with warning lights and sounds.
Test schematic is
and program (sketch) is doublebarriers_3a7.ino.
Real system created by my is on breadboard:
but Dragos (albasete) work more professional:
I uploaded a short video named double barriers with sound and lights