https://i0.wp.com/microcontrollerslab.com/wp-content/uploads/2018/07/Rotary-Encoder-Module-interfacing-with-pic16f877a-microcontroller-1024x842.jpg