I am hoping that I can use the OPB732WZOPB732WZ Reflective Photo Interrupter https://uk.farnell.com/optek-technology/opb732wz/opto-switch-reflective/dp/1678639 with a Raspberry Pi which has both 5v and 3.3v supplies on the GPIO.
I have no great experience with electronics, but attaching optical sensors to a Raspberry Pi appears to be a simple matter according to articles I have read using similar devices.
Any advice on how to connect this device to the Raspberry Pi would be gratefully received.
Many thanks.