Hi,
Have you tried calibrating the Gyroscope?
To Calibrate the Gyroscope on Samsung Galaxy Devices do as follows:
1. Open the ''Setting'' App
2. Find ''Motion'' and tap on it
3. Scroll down the menu and tap on ''Sensitivity Setting''
4. Open ''Gyroscope calibration''
5. Place device on a level surface and tap ''Calibrate''