Gyroscope issue

We are having issues with gyroscope on android. We have tried many ways to solve the issue but it keeps providing weird data. We are using Unity 5.
We only want one of the axis the player input. Which is on rotation.z on the device. But when we turn around (physically) it keeps showing data added, which it should not.

The device will be turned on the z axis and we need the rotation of the device on z.

Any tips? Or more information needed? I do not have the code available at the moment, but any attempt we have tried has not worked so far.

Are you sure about the device rotation and unity rotation? I had a similar problem, turns out the device axis is not the same orientation as the unity axis. Take a look here Unity Gyroscope orientation (attitude) "wrong" - Game Development Stack Exchange this might be your problem?