Yes, you can do that.
Personally, I'd use an optical sensor like the QRE113 as it's not subject to corrosion and fatigue on the bare wires.
Yes, you can do that.
Personally, I'd use an optical sensor like the QRE113 as it's not subject to corrosion and fatigue on the bare wires.