How can i get the displacement of the device with accelerometer

I've benn doing a project that i need the displacement from the smartphone to capture a movement like shoulder elevation. I need to say if the movement is correct or wrong. I want to know if it is possible to do. The movement is flood of the arm and i need to know the displacement to say if it is correct!