Mount it as close to the centre of gravity of your boat as you can, and away from anywhere someone might put ferrous objects, mobile phones, or anything else that might cause electromagnetic interference.
In my current boat the sensor is next to the compression post under a seat, but I have already inadvertently put a spare pump motor too close which messed up the autopilot.