Just a bit confused on how to set thresholds for negative values (aka values which are negative in mT). I was using the sensor to detect the opening and closing of case. I measured the Y value of the sensor and output it through uart when the case is closed and when its opened. When the case is closed i got a value of 63776 (-4.29 mT i calculated) and when open i got 65104 (-1.05 mT) and therefore im trying to add a threshold between these value so somewhere around -2mT and just change MAG_THR_DIR bit in the sensor config 2 register. I'm not sure what im doing wrong but can't seem detect the opening and closing when i set the threshold to -2 mT. Maybe i'm getting the calculation wrong. Can someone help me with this. Thanks