Rotate camera using accelerometer

I make a game for the Google Cardboard, but my smartphone doesn’t have a gyroscope sensor. I tried to make a script to rotate the camera using the accelerometer, but it didn’t work. If you know how to use the accelerometer instead of the gyroscope, please answer.
Any help would be great.

You can get accelerometer values from Input.acceleration. For example:

Vector3 vector =
	new Vector3(Input.acceleration.x, Input.acceleration.y, Input.acceleration.z);


Use the Compass to do it.

Now you can use your accelerometer to Do rotation.
All devices can be compatible for VR Or to rotate the camera with accelerometer,
thanks to this asset: