With ESP8266 is approximately $5 to be able to create your own one IoT devices connected to the internet and send a message alerting you to the phone when a motion detect by PIR sensor.
In principle, when the device detects motion sensor PIR, it will send request to the pushbullet server with the information and your api key. All mobile devices that had installed pushbullet app will get this message almost immediately.
- Install pushbullet application https://www.pushbullet.com/apps
- Register an account at https://pushbullet.com and try to find your api key at the top left screen (your account infomation). Login your appp with this account.
- Flash your ESP8266 with [esp_bridge] firmware (see: [https://github.com/tuanpmt/espduino])
- Wiring arduino, pir sensor and esp8266 and flash espduino example for pushbullet. And remember to change your wifi ssid, password and replace your pushbullet api key.
rest.setHeader("Authorization: Bearer <your_api_key>\r\n");