I created this breakout board that enables easy use and mounting of a mechanical rotary encoder. This kind of rotary encoder suffers from debounce problems. The easiest way to address it is to put a RC network on each leg of the rotary switch. This board has mounting holes in case one ends up using encoders that do not have threads.