How to capture body movements using MPU9250

Here I need to capture body movements using MPU-9250 3-Axis Accelerometer, Gyroscope & Magnetometer sensor. So can anyone help me to do it ?

Is there any available code to do it?

When I try to take data, it contains multiple wrong values. I don't now how to do it. So can anyone help me to do it ?

thaminduanusara22:
When I try to take data, it contains multiple wrong values.

"Wrong" in what way?