The
fluxgate compass needs to be in a location with little magnetic
interference. You may have inadvertently increased the local field because you have added
electrical wiring, rerouted something etc.
The new NMEA2000 compasses show the local field % which is recommended to be < 20% of the earth field. It is amazing how much "damage" a new install does -- even a new appliance a meter away already changed the field in my
boat dramatically. My
compass is now higher up under a bathroom sink, with the strict condition of no
electric toothbrushes allowed in that bathroom!!