https://electronicshubag.pages.dev/posts/rotary-encoder-with-arduino-know-it-all/
Rotary Encoder With Arduino Know It All