I bought a small optical monitor sensor. It basically detects optical pulses from an electrical meter and then triggers an ISR on a datalogger, which is a concrete product for this purpose. Because of this dependency, it has its own communication system via an RJ-45.
However, I'm trying to use this optical sensor device alone connected to my own RPi3B. The idea is to connect the device's cable to the rpi ethernet port and somehow read every RJ-45 individual pin, one by one. I'm not an expert on this kind of things, but the idea seems to be applicable. However, I haven't found any way to do this.
I'd like to know if you can read RJ-45 individual pins similarly to when you read from RPI's GPIO pins.
Edit: As from what I guess, the sensor has basically some sort of switch that closes every time it detects an optical flash. In fact, there are only two visible little cables at the RJ-45 terminal. In the datalogger that they distribute, I guess that they simply grab two of the pins manually and bridge them into two arduino pins, one for outputting voltage and one for listening for an interruption. Easy. But in my case I want to take advantage of the existing RJ-45 terminal (I could simply cut the cable and take only the intern cables that I need).