Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use mq-137: Examples, Pinouts, and Specs

Image of mq-137
Cirkit Designer LogoDesign with mq-137 in Cirkit Designer

Introduction

The MQ-137 is a gas sensor manufactured by HANWEI ELECTRONICS CO., LTD., designed to detect various gases, particularly hydrogen sulfide (H₂S). It operates on the principle of resistive change, where the sensor's resistance varies in the presence of target gases. This analog output can be processed to determine gas concentrations, making the MQ-137 a versatile component for environmental monitoring, industrial safety systems, and air quality control.

Explore Projects Built with mq-137

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Solar-Powered Environmental Monitoring Station with ESP32 and Gas Sensors
Image of AIR QUALITY MONITORING: A project utilizing mq-137 in a practical application
This circuit is designed to monitor various gas levels and air quality using a set of sensors (MQ-136, MQ-6, MQ-137, MQ-7, and PMS5003) interfaced with an ESP32 microcontroller. The ESP32 collects sensor data and can control a relay module potentially for activating systems like fans or alarms based on the sensor readings. Additional components include a DHT22 for temperature and humidity readings, a power supply with a step-down converter, and safety features like resettable fuses and an LVD (Low Voltage Disconnect) to protect the battery and circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Based Air Quality Monitoring System with MQ Sensors
Image of AIRMS: A project utilizing mq-137 in a practical application
This circuit is an air quality monitoring system using an Arduino UNO microcontroller connected to three different gas sensors: MQ-7 for carbon monoxide, MQ131 for ozone, and MQ-135 for general air quality. The Arduino reads analog signals from these sensors and outputs the readings via the serial interface for monitoring purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Based Air Quality Monitoring System with Multiple Gas Sensors and GSM Module
Image of AIRMS: A project utilizing mq-137 in a practical application
This circuit is an air quality monitoring system that uses an Arduino UNO to read data from various sensors, including the MQ-7 for CO detection, MQ131 for ozone detection, MQ-135 for general air quality, and a DHT11 for temperature and humidity. The Arduino processes the sensor data and can communicate the results via a SIM800L module for remote monitoring.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Air Quality Monitoring and GSM Notification System
Image of Arduino wild: A project utilizing mq-137 in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an MQ135 air quality sensor, an MPU-6050 accelerometer/gyroscope, a SIM900A GSM communication module, and a buzzer. The Arduino reads analog data from the MQ135 sensor and communicates with the MPU-6050 via I2C, while also controlling the buzzer and handling serial communication with the SIM900A module. The purpose of this circuit is likely to monitor air quality and motion, provide alerts through the buzzer, and enable remote communication via GSM.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with mq-137

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of AIR QUALITY MONITORING: A project utilizing mq-137 in a practical application
Solar-Powered Environmental Monitoring Station with ESP32 and Gas Sensors
This circuit is designed to monitor various gas levels and air quality using a set of sensors (MQ-136, MQ-6, MQ-137, MQ-7, and PMS5003) interfaced with an ESP32 microcontroller. The ESP32 collects sensor data and can control a relay module potentially for activating systems like fans or alarms based on the sensor readings. Additional components include a DHT22 for temperature and humidity readings, a power supply with a step-down converter, and safety features like resettable fuses and an LVD (Low Voltage Disconnect) to protect the battery and circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of AIRMS: A project utilizing mq-137 in a practical application
Arduino-Based Air Quality Monitoring System with MQ Sensors
This circuit is an air quality monitoring system using an Arduino UNO microcontroller connected to three different gas sensors: MQ-7 for carbon monoxide, MQ131 for ozone, and MQ-135 for general air quality. The Arduino reads analog signals from these sensors and outputs the readings via the serial interface for monitoring purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of AIRMS: A project utilizing mq-137 in a practical application
Arduino-Based Air Quality Monitoring System with Multiple Gas Sensors and GSM Module
This circuit is an air quality monitoring system that uses an Arduino UNO to read data from various sensors, including the MQ-7 for CO detection, MQ131 for ozone detection, MQ-135 for general air quality, and a DHT11 for temperature and humidity. The Arduino processes the sensor data and can communicate the results via a SIM800L module for remote monitoring.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Arduino wild: A project utilizing mq-137 in a practical application
Arduino UNO Based Air Quality Monitoring and GSM Notification System
This circuit features an Arduino UNO microcontroller interfaced with an MQ135 air quality sensor, an MPU-6050 accelerometer/gyroscope, a SIM900A GSM communication module, and a buzzer. The Arduino reads analog data from the MQ135 sensor and communicates with the MPU-6050 via I2C, while also controlling the buzzer and handling serial communication with the SIM900A module. The purpose of this circuit is likely to monitor air quality and motion, provide alerts through the buzzer, and enable remote communication via GSM.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Environmental monitoring systems
  • Industrial safety and gas leak detection
  • Air quality monitoring in residential and commercial spaces
  • Laboratory gas detection setups
  • IoT-based gas sensing applications

Technical Specifications

The MQ-137 sensor is designed for reliable and accurate gas detection. Below are its key technical details:

Key Specifications

Parameter Value
Manufacturer HANWEI ELECTRONICS CO., LTD.
Part ID MQ-137
Target Gas Hydrogen Sulfide (H₂S)
Operating Voltage 5V DC
Load Resistance (RL) Adjustable (typically 10 kΩ)
Heater Voltage (VH) 5V ± 0.2V
Heater Power Consumption ≤ 800 mW
Detection Range 5 ppm to 100 ppm (H₂S)
Preheat Time ≥ 24 hours
Output Signal Analog (voltage proportional to gas concentration)
Operating Temperature -20°C to 50°C
Operating Humidity 35% to 95% RH

Pin Configuration

The MQ-137 sensor typically comes with six pins. Below is the pin configuration and description:

Pin Number Pin Name Description
1 H1 Heater pin 1 (connect to 5V supply)
2 A Analog output pin (connect to ADC input)
3 B Analog output pin (alternative, same as A)
4 H2 Heater pin 2 (connect to ground)
5 A Analog output pin (duplicate of pin 2)
6 B Analog output pin (duplicate of pin 3)

Note: Pins A and B are internally connected, and either can be used for the analog output.

Usage Instructions

How to Use the MQ-137 in a Circuit

  1. Powering the Sensor:

    • Connect the H1 pin to a 5V DC power supply.
    • Connect the H2 pin to ground.
    • Ensure the heater voltage (VH) is stable at 5V ± 0.2V for accurate operation.
  2. Connecting the Output:

    • Connect one of the analog output pins (A or B) to the ADC (Analog-to-Digital Converter) input of your microcontroller or data acquisition system.
    • Use a load resistor (RL) between the analog output pin and ground. A typical value for RL is 10 kΩ, but it can be adjusted based on your application.
  3. Preheating the Sensor:

    • Allow the sensor to preheat for at least 24 hours before taking measurements. This ensures stable and accurate readings.
  4. Reading the Output:

    • The sensor outputs an analog voltage proportional to the concentration of H₂S gas. Use an ADC to convert this voltage into a digital value for further processing.

Important Considerations

  • Calibration: The MQ-137 requires calibration to accurately map the analog output voltage to gas concentration. Use a known concentration of H₂S gas for calibration.
  • Environmental Factors: Avoid exposing the sensor to high humidity, extreme temperatures, or corrosive gases, as these can affect its performance.
  • Power Supply Stability: Ensure a stable 5V power supply to avoid fluctuations in the heater voltage, which can impact sensor accuracy.

Example: Using MQ-137 with Arduino UNO

Below is an example of how to connect and read data from the MQ-137 sensor using an Arduino UNO:

Circuit Connections

  • Connect H1 to the 5V pin on the Arduino.
  • Connect H2 to the GND pin on the Arduino.
  • Connect one of the analog output pins (A or B) to the A0 pin on the Arduino.
  • Place a 10 kΩ resistor between the analog output pin and ground.

Arduino Code

// MQ-137 Gas Sensor Example with Arduino UNO
// This code reads the analog output of the MQ-137 and prints the value to the Serial Monitor.

const int sensorPin = A0; // Analog pin connected to MQ-137 output
int sensorValue = 0;      // Variable to store the sensor reading

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
  Serial.println("MQ-137 Gas Sensor Test");
}

void loop() {
  sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
  Serial.print("Sensor Value: ");
  Serial.println(sensorValue); // Print the sensor value to the Serial Monitor

  // Add a delay for stability
  delay(1000); // Wait for 1 second before the next reading
}

Note: The raw sensor value must be calibrated to convert it into a gas concentration (ppm). Refer to the sensor's datasheet for the calibration curve.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Fluctuating Readings:

    • Cause: Insufficient preheating time.
    • Solution: Ensure the sensor is preheated for at least 24 hours before use.
  2. Inaccurate Readings:

    • Cause: Improper calibration or unstable power supply.
    • Solution: Calibrate the sensor using a known gas concentration and ensure a stable 5V power supply.
  3. Sensor Not Responding to Gas:

    • Cause: Sensor may be damaged or exposed to extreme environmental conditions.
    • Solution: Replace the sensor and avoid exposing it to high humidity or corrosive gases.
  4. High Power Consumption:

    • Cause: Heater circuit drawing excessive current.
    • Solution: Verify the heater voltage is within the specified range (5V ± 0.2V).

FAQs

Q1: Can the MQ-137 detect gases other than H₂S?
A1: Yes, the MQ-137 can detect other gases, but it is most sensitive to hydrogen sulfide (H₂S). Refer to the datasheet for cross-sensitivity information.

Q2: How do I calibrate the MQ-137 sensor?
A2: Use a known concentration of H₂S gas and record the sensor's output voltage. Create a calibration curve by plotting the voltage against the gas concentration.

Q3: Can I use the MQ-137 with a 3.3V microcontroller?
A3: The sensor requires a 5V power supply for the heater. However, you can use a voltage divider or level shifter to interface the analog output with a 3.3V microcontroller.

Q4: How long does the MQ-137 last?
A4: The sensor's lifespan depends on usage and environmental conditions. Under normal conditions, it can last several years.

By following this documentation, users can effectively integrate the MQ-137 gas sensor into their projects and ensure reliable performance.