How do I get an Unity Camera to interact with an Android camera compas funtion

I'm looking for a Unity script / sollution that allows the camera in Unity to react like an Android phone camera, linking to the compass function. I tried it with tilt data, but didn't come close: Got a camera to accelerate along tilt axis only.

Can someone please help me with this issue: I want to look around in a fantasy world with my Android camera phone and make an app out of it.



You can use a plugin by Prefrontal Cortex: Forum Link

It provides example scenes for exactly what you want to achieve.