To give meaningful help we need instructions on how the device is/should be connected to arduino. The image just shows VCC,GND & OUT but is it a digital/analogue output, does it need pullup/pulldown resistors.
Maybe a picture of the way your shaft encoder looks. How many fins on the encoder wheel?
A description of how you have the device connected and your sample code (posted using the code (#) tags).