Background
I want to read how efficient an industrial manufacturing line is without tampering with the PLC code. The simplest solution I can think of is using a Raspberry Pi, thus creating an isolated OEE information gatherer. I know this is not meant for industrial environments, but it is only for proof of concept.
Question
I have a 24V SICK WTE11-2P2432 industrial sensor with the following connection diagram. Datasheet here.
I need to connect the output from pin 4 to a Raspberry Pi 3 Model B. Given that I am using the standard I/O pins for the Raspberry Pi, what is the best way to do so? Maximum voltage on an input GPIO pin is 3.3V.
I am trying to detect 1 part per second.
I am trying to avoid voltage dividers and building PCB's.