This part is a rotary quadrature encoder (Ky-40) with push button. The output is twenty pulses per revolution.
Examples
Datasheet