I have an optek Photologic® Slotted Optical Switch. It is meant to turn off when the near infrared emissions (850 - 940nm) are blocked.
It has five wires as follows:
I am unsure about what to do with the anode and cathode, (most likely connect the anode to Vcc).
Firstly, I connected Vcc and GND but the signal voltage did not change when the LED was blocked.
Next I connected the anode to Vcc and the cathode to GND Aas shown below and retried.
Am I missing something obvious?