Rotary encoder not increment perfectly

If you just need to enter five digits sequentially, parts of this Rotary encoder combination lock may work for you. This won't work for you if the digits need to be entered in some other specific order.