Man defends against package thieves using machine learning AI, flour, and very loud sirens
Build your own Raspberry Pi-powered alarm system to protect your stuff.
Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.
You are now subscribed
Your newsletter sign-up was successful
Want to add more newsletters?
Every Friday
GamesRadar+
Your weekly update on everything you could ever want to know about the games you already love, games we know you're going to love in the near future, and tales from the communities that surround them.
Every Thursday
GTA 6 O'clock
Our special GTA 6 newsletter, with breaking news, insider info, and rumor analysis from the award-winning GTA 6 O'clock experts.
Every Friday
Knowledge
From the creators of Edge: A weekly videogame industry newsletter with analysis from expert writers, guidance from professionals, and insight into what's on the horizon.
Every Thursday
The Setup
Hardware nerds unite, sign up to our free tech newsletter for a weekly digest of the hottest new tech, the latest gadgets on the test bench, and much more.
Every Wednesday
Switch 2 Spotlight
Sign up to our new Switch 2 newsletter, where we bring you the latest talking points on Nintendo's new console each week, bring you up to date on the news, and recommend what games to play.
Every Saturday
The Watchlist
Subscribe for a weekly digest of the movie and TV news that matters, direct to your inbox. From first-look trailers, interviews, reviews and explainers, we've got you covered.
Once a month
SFX
Get sneak previews, exclusive competitions and details of special events each month!
There's no feeling worse than watching your packages getting lifted with nothing you can do to stop the porch pirates. After recently having a package stolen, Youtuber Ryder Calm Down built himself his own anti-package pilfer alarm system using AI, flour, and a truck horn. It looks like something out of Evil Genius 2, minus the fatal spike trap.
The setup is simple enough: a camera watches the front porch in real-time, using a custom model TensorFlow (a machine learning platform) to recognize when a package is there. Then it arms itself. If the package is removed by an unauthorized person, like a box bandit, an alarm starts blaring, the sprinkling system is activated, and a blast of flour is fired in the general direction of the culprit.
This month-long project involved teaching the AI to identify loads of differently sized packages so it wouldn't confuse any boxes with, say, a stray cat. Ryder also trained the AI to identify his face as a 'known person' and basically uses a whitelist to disarm the alert system. When an 'unknown person' removes the package, all hell breaks loose.
Ryder is no stranger to creative Raspberry Pi projects which is a good reminder of all the cool things you can do with a Pi than just run emulators. He's previously made a dog detector that goes off whenever a dog walks in front of your house and a secret door that opens using a piano like in the Batman movies.
Best CPU for gaming: the top chips from Intel and AMD
Best graphics card: your perfect pixel-pusher awaits
Best SSD for gaming: get into the game ahead of the rest
Ryder says that the system is meant to deter any would-be terrace thief by making a whole lot of commotion. Yeah, there's nothing actually stopping a person from running off with your Amazon package once the alarms blare; the idea is the sirens should be enough to rattle them into leaving the score behind. Though I do get a sick satisfaction from watching videos of someone getting hit with a glitter bomb and fart spray when they open their ill-gotten goods at home, I guess this works too.
You can find the code to build your own AI-powered package theft prevention device right here. Thanks, Tom's Hardware!
Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.

Jorge is a hardware writer from the enchanted lands of New Jersey. When he's not filling the office with the smell of Pop-Tarts, he's reviewing all sorts of gaming hardware, from laptops with the latest mobile GPUs to gaming chairs with built-in back massagers. He's been covering games and tech for over ten years and has written for Dualshockers, WCCFtech, Tom's Guide, and a bunch of other places on the world wide web.

