Dear Mark sir,
I am happy to note that its working but I will make the change as you suggested.
I have few more concerns which I forgot to mention in my last message.
1) The data is changing continuously. Yes, off course due to noise but showing same change in readings with movement and without movement. Can you please suggest whats wrong.?
2) How can I implement the low-pass filter to get the standard output? I tried inutting some registers as mentioned in the datasheet but still the results are not so good and no expected change in reading with the movement of sensor.
Please help in this regard.