Recommended 路 for some experience
#226 ROTARY ENCODER with no switch bounce 馃 - you MUST use this
Why people recommend it
Ralph Bacon's explanation of rotary encoders and false readings from contact bounce, suggested for understanding the problem and for code others have reused.
Watch for: One viewer says it gets useful after the first minute