In this article we will learn about the different types of Rotary Encoders and how it works, and interface a KY-040 rotary encoder with arduino