Hello world! This is a example on how to use the KY-040 Rotary encoder.
Its very basic but if your new to arduino or could not find any code, then you have something to start with.
because there is little documentation about the Keyes sensor kit.
Follow the next step for the Code Schematic and Parts List.