Unity Accelerometer weird behavior!

Hello, everyone

(I’m using unity 4.5)

Unity accelerometer doesn’t work properly, i’m trying to do the exact way provided here:
http://unity3d.com/learn/tutorials/modules/beginner/platform-specific/accelerometer-input

I have set a cube like in the tutorial then i did assign the same code that is provided in tutorial to the cube, but the weird behavior is that the cube starts moving in the negative z-axis by itself without me touching the mobile, also the mobile is placed on a flat surface, in addition to that it moves insanely fast!

Note that i have tried it on two defferent devices, one is xperia z and the second is galaxy s4
but the result is the same.

any idea on what actually the problem is?

Thank you all for your time.

Would “insanely fast” be at about 9.81 units per second, by any chance? (Put some Debug.logs in your code to print out the value of Input.acceleration.z). If so, it sounds like the accelerometer in your device is (correctly) reporting acceleration due to gravity. Some accelerometer readings are normalised to remove this, but in my experience it seems to vary from device to device.