Adjusting digits in a number using a rotary encoder

It has 5 pins and one of them is a switch.

If it only has 5 pins then there is no switch.