A lock device for a door having an open position, a closed position, and positions therebetween with respect to an adjacent structure , the lock device comprising: a magnet, the magnet providing a reference magnetic field , the magnet being located at one of the door and the adjacent structure ; a magnetometer structured to measure a location of the magnetometer relative to the magnet as provided by the reference magnetic field , the magnetometer being located at the other of the door and the adjacent structure ; an accelerometer structured to detect an acceleration of the lock device , and a processing device structured to generate a signal to wake-up the magnetometer from a low power mode in response to detection of the acceleration; and the processing device structured to execute instructions stored on a non-transitory computer readable medium that causes the processing device to: receive the location measurement of the magnetometer ; derive a position indicator from the location measurement of the magnetometer , wherein the position indicator indicates one of the positions of the door ; compare the position indicator to a reference indicator, the reference indicator corresponding to the location of the magnetometer with respect to the magnet when the magnetometer is at a reference position; and determine, based on the comparison of the position indicator to the reference indicator, whether the magnetometer is at the reference position. a magnet, the magnet providing a reference magnetic field , the magnet being located at one of the door and the adjacent structure ; a magnetometer structured to measure a location of the magnetometer relative to the magnet as provided by the reference magnetic field , the magnetometer being located at the other of the door and the adjacent structure ; an accelerometer structured to detect an acceleration of the lock device , and a processing device structured to generate a signal to wake-up the magnetometer from a low power mode in response to detection of the acceleration; and the processing device structured to execute instructions stored on a non-transitory computer readable medium that causes the processing device to: receive the location measurement of the magnetometer ; derive a position indicator from the location measurement of the magnetometer , wherein the position indicator indicates one of the positions of the door ; compare the position indicator to a reference indicator, the reference indicator corresponding to the location of the magnetometer with respect to the magnet when the magnetometer is at a reference position; and determine, based on the comparison of the position indicator to the reference indicator, whether the magnetometer is at the reference position. receive the location measurement of the magnetometer ; derive a position indicator from the location measurement of the magnetometer , wherein the position indicator indicates one of the positions of the door ; compare the position indicator to a reference indicator, the reference indicator corresponding to the location of the magnetometer with respect to the magnet when the magnetometer is at a reference position; and determine, based on the comparison of the position indicator to the reference indicator, whether the magnetometer is at the reference position. <EOS>