accelerometer rotation

hey guys I need some help I'm trying to figure out how to make an actor rotate using the accelerometer. what i want to do is as i turn my body i want to have the actor turn with me. so if i turn left the actor turns left if i turn right the actor turns right. but it needs to be smooth from what i have read on the forum so far looking for a solution people have got it to only work like a clock.
Comments
hope that helps
kipper
i loaded an image to be my actor i click on the actor i click on the add new rules and i choose attributes. so now i want to set the accelerometer to this actor. so from what i understand (it might be wrong ) I choose devices game.accelerometer.x= vectortoangle(x,y)+180 (so im not sure if im supposed to set the x and y in this equation). so that was for moving right im assuming and for the left im putting game.acceleromter.x=vectorangle(x,y)-180 ( again im not sure if this is right at all this is the first time im setting up a rule and from what i see on my ipad my actor is not moving as i rotate left and right when i put it on the view??????
I hope that helps.
kipper