I am currently working on using a slottet optical switch like this OPB4xx one as a sensor for my project. The sensor going to send its output to my Arduino which then will process the data. According the to the data sheet it has 4 input wires and 1 output wire.
Here's a portion of the datasheet:
The wires being VCC, ground, output, anode and cathode.
VCC seems obvious it will probably go to the 5v pin on the Arduino,
ground goes to ground on the board. Output goes one the pins on the board.
But how should the anode and cathode be connected to the board?