The code to understand the ultrasonic sensor and how it works. Using the LED as a trigger to alert the user it in presence of obstacle.
The code to understand the PIR sensor and how it works. Using the LED as an output in presence of movements.
Connect the apps from the smartphone to the ESP8266. Making the project become a Internet of Things. The user can monitor the security breach if there is a movement or anyone approaching.