Xiao Sense Accelerometer Examples and Low Power

I know this thread is somewhat old. But I figure you or others might have some input here. In lieu of using a physical tilt switch interrupt on a GPIO pin, I am looking at using the accelerometer to interrupt sleep on a specific “tilt” angle (range). In this case, using X axis if it exceeds a specific range (e.g wake when X > ,.2). For reference this is a title project to wake up the nrf52840 sense when a handle opens a valve (tilt degree). and measure the time duration until back to the off position < .2 I also need to include background vibrations not causing a false wakeup (think debounce) but I think I can avoid it simply by changing the range (e.g. .25 in stead of .2)