The magnet must be oriented to align the degree output to the desired physical location.
The sensors and magnet must be placed so that the sensor voltage output is not clipped or railed at either the north or south pole.
If writing code that uses both the arctan2 and arcsin functions, consider using the identity in Equation 2. This identity saves on program space because the arctan2 function already uses the arctan function.
Equation 2.
Most arctan2 and arcsin functions output the angle in radians. The angle can be converted to degrees using Equation 3.
Equation 3.
While a ±90° range is possible with one sensor, the voltage measurement accuracy and sensor noise limit the angle to a value less than ±90°.