|
Hook the brown to +, blue to -.
Don't tie black and white together.
When nothing is sensed, the circuit for the white is closed and the black is open. When the light is reflected and sensed, the white is open and the black is closed.
Or is it the other way around... I'm just doing that off the top of my head...
Just hook both white and black to SEPARATE digital inputs and debug the variables. You can find out by trial and error. When you figure it out, you only really need 1 wire to detect 1 or 0.
|