Paste the device token into the Arduino code.
Add your SSID and Password to the Arduino code as well.
And upload to the Node MCU ESP8266.
ConnectionsPlug the Node MCU ESP8266 into your power bank.
Connect power and ground to your PIR motion sensor depending on your sensor you may need to provide 5V from the power bank) and the signal out to Pin D2 of your Node MCU ESP8266.
Setup CayenneAdd the digital motion sensor to Cayenne after the device connects.
Make sure to select your "Arduino"-(Node MCU ESP8266), Virtual Pin, and Pin V1.
Click the top right drop down and add a trigger.
Drag your ''Arduino"- (Node MCU ) to trigger and add your email to notify.
Place in your mailbox for the unsuspecting mailman.
Enjoy that feeling of knowing your package has arrived safely in your mailbox from anywhere in the world!
I would like to thank Cayenne for sponsoring this project and Chao @Electrodragon for some amazing and cheap parts (that I hope arrive soon) !
Comments