Printer optical encoder for steering wheel

I got a new sensor from another printer. It isn't on the printer's main board so it's easy to wire. Just tested it and everything works fine. Thanks for your replies and attention!