MTH Crossing gate. Red hooked to the center rail. Black outside rail common. Blue Yellow and White are a switching circuit.
Touch the yellow and blue together, the gate should go down and stay down. Lights will also flash.
Touch the white and blue together the gate should go up and stay up. Flashing lights off.
There are up and down limit adjustments on the back of the gate control panel.
If the gate works, continue testing with your activation device.
Mike CT.