Gyro and Accelerometer. Chapter 19 of the iOS5 Beginner's Book.