If the lid is a swing style ( doesn't detach completely ) and object doesn't move too much, a mercury switch would be suitable.
If the lid is a swing style ( doesn't detach completely ) and object doesn't move too much, a mercury switch would be suitable.