Match Object (Main Camera) To Gyroscope Rotation Rate

I’m new to Unity iOS Development, but familiar with unity in all. I have no idea how mobile input works, so I need some help with that. Specificly, how do I match an object, the Main Camera, to the Gyroscope. I guess it has to do with Gyroscope.rotationRate, but I’m not sure. Thanks,

Here is a link to some source. I never tried it out because we ended up using the compass instead.

http://pastebin.com/fR3yk4Zm