Anything that moves past it makes it explode. Must have camera for it to work.
Credits to scratch.mit.edu for the tutorial and somebody else for the bomb noise.