Mark Rober engineered a device to surprise people who steal packages from his front porch. His video explaining the device,and showing what happened, is satisfying to watch: BONUS: The special Miscreant Trapping issue of the Annals of Improbable Research presents many other intelligent devices, or by many intelligent people,to trap miscreants.
Source: feedburner.com