Move character with device rotation(android)

Hi
First sorry for my English.
I am trying to make a game for android and make character move with mobile rotation.
For example if user rotate mobile clockwise character move right and otherwise move left.
have can I access to rotation of device?
Any help will appreciate.