C# 2D tilt right left Control on Iphone

I Have no idea how to even begin with this. I have a cube on the screen and i want to be able to move it right and left by tilting the device. It is held horizontally. I am new to coding for the Iphone and i would really appreciate some help. Thanks!

look at the Unity’s Gyroscope references there are some examples there