Magnetometers often need to be recalibrated, especially if the immediate environment is changed or there are iron or magnetized objects in the vicinity. See this recent post: Watch out for LSM303D sensor board magnetization
Magnetometers often need to be recalibrated, especially if the immediate environment is changed or there are iron or magnetized objects in the vicinity. See this recent post: Watch out for LSM303D sensor board magnetization