In this video we will have a look at rotary encoders and in particular go through a robust and reliable code for the Arduino. The code in the video can be downloaded here: https://github.com/mo-thunderz/RotaryEncoder Make sure that the pins used to connect the rotary encoder to support interrupts. See: https://www.arduino.cc/reference/de/language/functions/external-interrupts/attachinterrupt/