An inertial measurement unit (IMU) is a device for measuring the acceleration and angular rates of an object. It may additionally measure the magnetic field through the object. More info on wikipedia