Using Multiple Rotary Encoders with one board

You might get some ideas here: GitHub - gfvalvo/NewEncoder: Rotary Encoder Library
See the MultipleEncoders example.