This is the whole code of a simple fire detector project suitable for school projects or to have something on your showcases. This project uses C++ and with the help of ESP-32 the data we obtain from the IR (Infrared Ray) Sensors and Smoke detector sensors we can easily make conditions according to our requirements.
- ESP-32
- Usable cables
- Smoke detector Sensor
- Infrared ray (IR) Sensor
- Buzzer
- BreadBoard
- Jumper cables/wires
- Some LED lights
This image may help for advance usage of ESP-32.
Use the pin numbers I used in the code or you may see some youtube tutorials on ESP-32 given below -
https://www.youtube.com/watch?v=-V3oZ2CrwXE - For IR Sensor
https://www.youtube.com/watch?v=wq1bM2EpRdI - For Smoke detector Sensor
Take help of more tutorials of necessary.
Use BreadBoard, it would be easier for you to manage the cables. Please beware of correct usage of pins or else the micro-controller/hardware may get damaged.