Correlating accelerometer data
Motion can be described using displacement with time, velocity or acceleration. To get these quantities from the accelerometer data the following link may help.
http://www.chrobotics.com/library/accel-position-velocity