The gear tooth sensors can be used as encoders if you put them near a gear or sprocket in your drivetrain. This document will tell you how to wire them up, and also will point you to other documents with application notes:
http://www.ifirobotics.com/docs/2006...h-sensor-b.pdf