A simple arduino sketch for a larp gadget. The gadget is a chest, which detects whether it is open or closed (as witnessed by a light sensor inside and a bending sensor on a hinge). When a chest is open, an alarm sounds.