Accelerometer data available?

i need to access the accelerometer data from my Android Tablet so i can use the X, Y, and Z rotations to control the player, any idea where i should start?