Compartment occupied detector

I afraid the weight might damage the switch.

Not if the switch is mounted correctly, in a recess.

Use common sense in the construction.