You may find all Acceleration and Gyro Sensor related solution on this link probably.
Kindly be advised, this one is not my personal website, but had helped me.
Hope this may solve your as mine.
Sorry for so late reply, hope by now you may have rectified your problem, but this one is for someone who requires it.
Have a nice day ahead