The rotary encoder module is an angular measuring device. It is used to precisely measure the 24-steps rotation of knob that can turn infinitely (with no end stop like a potentiometer has). The rotary encoder module also has a pushbutton when you press on the axis (like the ones used for navigation on many music controllers).