I have an aluminium box (dimension about 10 × 10 × 10 cm) with a lid closed with 4 screws (such as this: https://www.hammfg.com/electronics/small-case/diecast/1590).
I would like to put a simple electronic circuit inside the box with a small battery such that the circuit is activated as soon as the screws are opened and the circuit is deactivated when the lid is pushed tightly in place on the box.
One possibility could be to use some kind of switch installed between the box and the lid such that the switch is activated when the pressure is released when removing the screws.
Is there such a simple switch or any alternative that achieve the same goal? It is not sufficient to activate the circuit when the lid is (fully) removed.