Tutorial 31: Catching the Cookie Thief

Let's bring it all together! I've put together my home automation security system and bait the cookie thief with some delicious cookies on the counter. Will it work?


  • A sense of humor
  • Sometimes Zan can be funny
You can copy / paste the code below if you’re having issues with typos or want a shortcut. However I recommend that you follow along in the tutorial to understand what is going on!


# The cookies are never safe.
If you’re interested in a little more about what kind of cookies Zan like, check out the links below: