How to Build a Raspberry Pi Alarm that Sprays Porch Pirates

Raspberry Pi Alarm that Sprays Porch Pirates
(Image credit: Shutterstock, Tom's Hardware)

These days, everyone gets packages delivered on a regular basis and, if you don’t notice a drop off right away, a “porch pirate” could steal your stuff. According to C + R research, 43 percent of Americans had at least one package stolen in 2020. 

To solve this problem, I built a Raspberry-Pi powered system that uses a camera and machine learning to determine if a package has been stolen from your door. When it detects the problem, it can either sound an alarm, turn on your sprinklers to wet the offenders or even shoot flour at the thieves. Tom’s Hardware covered my project in a previous news article, but today I’m going to show you how to do it yourself.

Latest Videos FromTom's Hardware
Ryder Damen
Freelance Writer

Ryder Damer is a Freelance Writer for Tom's Hardware US covering Raspberry Pi projects and tutorials.

  • gravagehulk
    Okay, I have so many concerns here.

    What if Fedex drops off a package, then UPS comes to deliver another package the same day? Isn't the UPS driver going to get sprayed? I get multiple deliveries/day from Amazon, UPS, Fedex, etc. This seems like something that would only really work well if you occasionally get one package delivered/day.

    I love the idea, but there are just so many things that can go wrong here.
    Reply
  • apiltch
    Supposedly this only triggers if a package is "missing" that was previously there. Adding a package to the pile should not trigger it, according to Ryder who made the script. Certainly, you'd want to test it if you made it.
    Reply
  • HummingFish
    Don't do it! This might not be a good idea. You do not know what the pirates will do to your house. They might take revenge and come back later to do something really bad to your house. Your house is fully exposed, whereas they are in the dark.
    Reply
  • Neilbob
    Sippincider said:
    Take off the kid gloves. No mere water or sirens.

    Expand on the previous article, this time dumping an entire bucket of flour on the thieves.

    They'd be screwed. They're leaving footprints, plus they're not getting the stuff off quickly; a flour-covered person fleeing the area WILL get noticed.

    Suppose one could go further still, using powdered sugar or starch, plus lawn sprinkers to turn it into a sticky mess which they're not brushing off.

    Why limit ourselves here? I'd personally go even further than that and install a flamethrower.
    Reply
  • waltc3
    Instead of sprinklers going off, how about low-energy lasers, tasers, and a couple of 12-gauge shotgun blanks going off? You could have a couple of warning yard signs, "Package thieves will be shot on sight. You have been warned!", too. A nice touch would be to use a sprinkler head at the same moment as the thief is being tased! (The deluxe setup would catch the hilarious spasming on camera.)

    --From the "Things We'd Like to Do" Dept files...;)
    Reply
  • woot
    All of this is pointless, thiefs will thieve, alarms or not, the problem lies in the fact that people are willing to receive their packages this way and delivery companies dont care about it.
    Reply