Actualy it seems the 65000 is for negative g. I don’t know why it is outputting like this. for example with the y axis pointing downward I get:
x=14, y=65523, z=244
The when I put the z upside down I get:
x=51, y=27, z=65276
As an example.
The other problem is the scale is set depending on what g setting you choose. I do not know what the default is as I am using a slightly modified example found in the chat section. As this is improved I will gladly post it in the code section as it is not there.