If safety is a concern - make sure gravity deactivates the switch.

![enter image description here][1]

This kind of switch is designed to never be activated by accident.


  [1]: https://i.sstatic.net/xPuj5.jpg