Skip to content

This Arduino project effectively monitors temperature and gas levels, providing immediate feedback through visual (LEDs) and auditory (buzzer) alerts. By using the LM35 and MQ-2 sensors, the system can ensure safety in environments where temperature and gas concentrations are critical.

Notifications You must be signed in to change notification settings

EmanAhmed55/Temperature-Gas_Sensor_for_Medical_Purposes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Arduino-Based Temperature and Gas Monitoring System

📖 Introduction

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.

⚙️ Components Used

  • 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).

📋 Functional Requirements

Normal Operation

The green LED should remain lit during normal conditions, indicating that both temperature and gas levels are within safe thresholds.

Alarm Activation

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).

Return to Normal

If temperature and gas levels fall below their respective thresholds:

  • The green LED turns back on.
  • The red LED turns off.
  • The buzzer stops.

🔍 Explanation

Setup

Initializes the LED and buzzer pins. The green LED is turned on by default.

Loop

Continuously reads the temperature from the LM35 and the gas level from the MQ-2.

Conditions

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.

🔌 Wiring

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)

📦 Conclusion

This Arduino-based monitoring system serves as an effective solution for ensuring safety by continuously monitoring environmental conditions and providing immediate alerts when necessary.

🏷️ Usages

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.

About

This Arduino project effectively monitors temperature and gas levels, providing immediate feedback through visual (LEDs) and auditory (buzzer) alerts. By using the LM35 and MQ-2 sensors, the system can ensure safety in environments where temperature and gas concentrations are critical.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published