Attach the sensor to your door on an inward tilt. You may have to jury-rig a way to mount it.
Ideally, there would be a “calibration method” to reset the sensor. I don’t know the specs on the chip as to whether or not this is available. The great thing about SmartThings is that it could be done with software; i.e., make the DTH store a calibration preference for each axis.
Easy to implement … hard to get published.