Holder for Xiaomi Aqara Switch.
You can get it easy out for battery change.
You can stick it to the wall or use some screws.
I printed with ABS. If you print with PLA there can be some space between sensor and case because of the less shrinkage. You can put a piece of paper underneath.