Android Inputs?

Am trying to make a game for android but i have a problem, i need to move a gameObject left and right (X axis) with the mobile rotation:

this.transform.position.x += Input.acceleration.x;

Does Input.acceleration.x detect mobile rotation? How could i make this work?


Input.acceleration.x is a number between -1 to 1.

this video may help you understand it better:

and this: