Hello qinxg,
If your application could accept gyroscope power consumption under low power mode, you could use BMI270.
Bosch had smart lock application with BHI160B integrated algorithm, user didn't need develop algorithm, and directly get door status. If you are interested, you can contact the local distributor first, and request BHI160B smart lock solution in your project.
... View more