An accelerometer senses motion and velocity to keep track of the movement and orientation of an electronic device.