Improved Arduino Rotary Encoder Reading

Here is a nice tutorial on how to use rotary encoders with Arduino. Example code is included. I wanted to use a low cost rotary encoder as an input mechanism for one of my upcoming projects and was initially bewildered by the code options available to take readings from the...