How about an IR emitter on one side of the can and a receiver on the opposite side, facing each other. As long as the receiver sees the signal from the emitter, the alarm stays quiet. If something breaks the beam, have the alarm sound after a brief delay, a second or so, plenty of time for a...