An accelerometer is an electronic sensor that measures the acceleration forces acting on an object, in order to determine the object’s position in space and monitor the object’s movement.
The accelerometer returns the forces applied on the phone for x, y and z directions.