This Arduino library allows you to read from 2-pin encoders. To use it you will need an encoder, and the appropriate hardware to read from it.
This library is free software; you can redistribute it and/or modify it freely. This library is simply distributed in the hope that it will be useful.