MPU-6050 Problem

Hi guys , I have a question for you .. I am working on a project that involves a burden to the gym where I would like to integrate an MPU - 6050 sensor , to try to detect a repeat ( ie a movement from point A to point B ) He admitted that they are already able to obtain standard values ​​and to make it work but do not know how to measure this movement you have any suggestions please if you could help me