Sensors

Our team has decided to use sensors on our 2012 robot. in preparation, we are building a preseason bot. I was just wondering what were teams experiences with some of these sensors, and if they could recommend one that worked with the wpilib library:

Accelerometer
Absolute encoder

Thank you so much