How to make the phones rotation equal to the objects rotation?

I am trying to make a game where you can tilt a platform to get the ball rolling. So I got a script where the platform rotates at a given speed when I tilt the phone. But it keeps rotation as long no as the phone is just slightly rotated. But I don’t want the phone to give the speed of the rotation but the object to be equal to the phone.

Do you know how to make the platform exactly equal to the platform in the rotation?

(I will post my script later when I’m back on my PC)

Can I see your script?