Printer optical encoder for steering wheel

Maybe i'm missing something here, but the sensor board in your initial post is visually completely different to the one you've just posted.

If the sensor in your latest post is wired up as you've shown it, then that may suggest a level of intelligence within the sensor module that can handle serial communication (hence your reference to Rx & Tx). That assumes, of course, that pins 0 & 1 are being used for serial comms and not just discrete logic levels for pulses and a direction.