Product description
This is a quadrature encoder and outputs gray code so that you can tell how much and in which direction the encoder has been turned. This encoder is especially cool because it has a common anode RGB LED built in, as well as a push-button.
More information is available on the website of Sparkfun.