I have been using the encoder.h library for years and works great for me. I only used it with the little knobs that also have a push button on the top,
One day I wanted a more pulses per rotation encoder so I bought this.
I connected the Arduino ground to the "0v" terminal and the " 5v" to the 5V arduino output.
Then I connected the terminals A and B of the wheel to the pins 20 and 21.
I am getting no pulses.
I took a small knob encoder and used the same setup and it works great, I can count pulses back and forth. So I wont include any code because is a hardware problem.
Sounds so simple , I feel stupid...