How to make object rotate by moving phone ( noob question)

hey everyone,

I am trying to set up a test to get a box to rotate as I rotate the phone, ive tried to look threw samples and tutorials and just can’t seem to find the right code…

ive tried using acceleration and others but nothing is working… any help?

Can you give a bit more detail about the rotation effect you are looking for? Also, can you give some idea of what you have tried so far and what went wrong (didn’t work, crashed, rotated the wrong way…)