Fun with Rotary Encoders

4 of the pins on that device are the encoder pins. The others are for the switch and LED. Ignore those three pins.