The project involves building a Smart Air System working based on a sensor monitoring and control system using an ESP32 microcontroller. The system reads data from various sensors (temperature, humidity, IR, flame, gas, and smoke) and the Fan and Air pump take appropriate actions based on the sensor readings. as well as we create a Flutter mobile Application to control the Fan and Air pump.
Fan 2 Control (Gas, Smoke, or Fire Detection) Turns On: When any of the following conditions are met: The gas sensor (MQ5) detects gas above a certain threshold. The smoke sensor (MQ2) detects smoke above a certain threshold. The flame sensor detects fire. Turns Off: When all the following conditions are met: The gas sensor detects gas below the threshold. The smoke sensor detects smoke below the threshold. The flame sensor does not detect fire.
Wi-Fi and MQTT Integration: The Two ESP32s also connect to a Wi-Fi network and communicate with an MQTT broker. It publishes sensor readings and control actions to specific MQTT topics and receives control commands via MQTT.
We Connect The MQTT Serve With NODE RED by passing into MQTTin flow:- 1-Cluster URL 2- Username 3- Password 4-Topic Name
After that we display the Signals that are coming From Sensors into Line Charts, Graphs, and Gauges.
The user can select sign in or sign up to access our App. After that, we make authenticated with Firebase with the email and passwords of the user