20 Pulse Mechanical Rotary Encoder with Push Switch 10/15/20mm Shaft 5 Pin

Encoders are devices that program and convert signals (such as bitstreams) or data into signal forms that can be used for communication, transmission, and storage. Pulse count: 20. With or without switch: Yes.

eBay