railking crossing gates

Does anybody know how to connect 2 crossing gates together to a lionel inferred sensor. I connected black to black, red to red, white to white and yellow to yellow with no luck. The sensor is powered by track power, what am I doing wrong?

I figured it out. I just had to connect power to the second gate. All is well, now train running.

Glad you got it figured out. [:D]