This project involves the design and implementation of a monitoring system using an Arduino Uno, incorporating a red LED, a green LED, a buzzer, an LM35 temperature sensor, and an MQ-2 gas sensor. The system is designed to monitor environmental conditions and provide visual and auditory alerts when thresholds for temperature and gas levels are exceeded.
- Arduino Uno: Microcontroller for processing.
- Red LED: Indicates alarm status.
- Green LED: Indicates normal operation.
- Buzzer: Provides auditory alerts.
- LM35 Temperature Sensor: Measures ambient temperature.
- MQ-2 Gas Sensor: Detects the presence of various gases (e.g., LPG, smoke).
The green LED should remain lit during normal conditions, indicating that both temperature and gas levels are within safe thresholds.
The red LED should turn on, and the buzzer should activate if:
- The temperature measured by the LM35 exceeds 60°C.
- The gas level detected by the MQ-2 sensor exceeds 400 (specific gas concentration).
If temperature and gas levels fall below their respective thresholds:
- The green LED turns back on.
- The red LED turns off.
- The buzzer stops.
Initializes the LED and buzzer pins. The green LED is turned on by default.
Continuously reads the temperature from the LM35 and the gas level from the MQ-2.
If either the temperature exceeds 60°C or the gas level exceeds 400:
- The green LED turns off.
- The red LED turns on.
- The buzzer activates.
If both conditions are normal:
- The green LED stays on.
- The red LED stays off.
- The buzzer is off.
Connect the LM35 to:
- A0 (Analog Input)
- Power
- Ground
Connect the MQ-2 gas sensor to:
- A1 (Analog Input)
- Power
- Ground
Connect the green LED to:
- Pin 10 (with a current-limiting resistor, typically 220Ω)
Connect the red LED to:
- Pin 9 (with a current-limiting resistor, typically 220Ω)
Connect the buzzer to:
- Pin 11 (with the negative lead to ground)
This Arduino-based monitoring system serves as an effective solution for ensuring safety by continuously monitoring environmental conditions and providing immediate alerts when necessary.
This project can be utilized in various applications, including:
- Incubators: For monitoring temperature and gas levels to ensure a safe environment for newborns.
- Breath Analyzing Systems: A non-invasive and comfortable method for patients to monitor their respiratory health. For more details, refer to this research paper.