Using Gyroscope in iPhone to rotate GameObject in Unity

Hey!
Does anyone have a simple way of making an already existing GameObject in Unity rotate in the same manner as the Iphone through retrieving Gyroscope data, by attaching C#-code?

This is what I have so far, but it might be wrong…

using UnityEngine;
using System.Collections;
public class GyroRotate : MonoBehaviour {

 void Start () 
 {
     Input.gyro.enabled = true;
 }

 void Update () 
 {
     transform.Rotate (Input.gyro.rotationRateUnbiased.x, Input.gyro.rotationRateUnbiased.y, Input.gyro.rotationRateUnbiased.z);
 }

}

Thanks beforehand!

Try this , if it might be wrong, tonight i will send you new script

     using UnityEngine;
    using System.Collections;
    
    public class ExampleClass : MonoBehaviour {
     void Start () 
      {
          Input.gyro.enabled = true;
      }
        void Update() {
            transform.rotation = Input.gyro.attitude;
        }
    }