A. Calibrate the compass by moving your device in a figure-eight motion until the calibration is complete. This can help improve accuracy.
B. Ensure that there are no magnetic interference sources nearby, such as metal objects or electronic devices, while calibrating.