OPTION B – If the optical sensor is covered with black tape, then the input
(YELLOW) wire can be used to control the sensor. Connecting the input wire
to an isolated rail will cause the sensor to change its two outputs and operate
a typical LED signal.
Did you remember to cover the sensor with black elect tape? - this is my guess
Did you connect the yellow wire to the track?
Joe