Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›MQ-136 Hydrogen Sulfide, MQ-137 Ammonia

Component guide · Intermediate · 3 min read

MQ-136 Hydrogen Sulfide, MQ-137 Ammonia and MQ-138 VOC Gas Sensors

Wiring and Calibration

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the MQ-136 H2S and MQ-137 ammonia sensors isMQ-136 H2S and MQ-137 ammonia sensors pinoutWiring the MQ-136 H2S and MQ-137 ammonia sensorsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

The MQ-136 detects hydrogen sulfide (1 to 200 ppm), the MQ-137 ammonia (5 to 500 ppm) and the MQ-138 organic vapours such as toluene and acetone. They are tin-oxide sensors with a 5 V heater, used in poultry farms, biogas plants, sewage and compost monitoring. Their resistance falls as gas rises, and they need burn-in and calibration.

Key specs at a glance

Heater
5 V, about 150 mA
MQ-136 range
About 1 to 200 ppm H2S
MQ-137 range
About 5 to 500 ppm NH3
MQ-138 range
About 5 to 500 ppm VOC
Output
Analog; modules add a digital threshold
Burn-in
24 to 48 hours

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1MQ-136 Hydrogen Sulfide (H2S) Gas Sensor Module – Analog & TTL Output₹1,099
  • Option 2MQ-136 Hydrogen Sulfide (H₂S) Gas Detection Sensor – SnO₂ Semiconductor₹1,049
  • Option 3MQ-137 NH3 Ammonia Gas Sensor Module₹1,159
  • Option 4MQ-137 Ammonia Gas Detection Sensor – 5-500 ppm NH₃₹1,049
  • Option 5Winsen MQ137 Ammonia Gas Sensor – 5-500 ppm NH₃ Detection, SnO₂ Semiconductor₹2,779
  • Option 6Winsen MQ138 VOC Gas Sensor – SnO2 Semiconductor, 5-500 ppm Range₹2,749
01

What the MQ-136 H2S and MQ-137 ammonia sensors is

The MQ136 (hydrogen sulphide) and MQ137 (ammonia) are metal-oxide gas sensors used for sewage, poultry farm, compost and cold-storage monitoring.

These sensors also react to other gases with similar chemistry, so the reading is an estimate. For accurate H2S or NH3 at low ppm, use an electrochemical sensor.

In barns, mount at animal height and protect from dust and splashes.

02

MQ-136 H2S and MQ-137 ammonia sensors pinout

The pins on the MQ-136 H2S and MQ-137 ammonia sensors and what each one does.

PinFunction
VCC5 V
GNDGround
AOAnalog output
DOThreshold output
PinFunction
VCC
5 V
GND
Ground
AO
Analog output
DO
Threshold output
03

Wiring the MQ-136 H2S and MQ-137 ammonia sensors

Connect the MQ-136 H2S and MQ-137 ammonia sensors like this.

MQ-136 H2S and MQ-137 ammonia sensors pinArduino UnoESP32
VCC5 V5 V (VIN)
GNDGNDGND
AOA0GPIO 34 via divider
DOD2GPIO 27
VCC
Arduino Uno:
5 V
ESP32:
5 V (VIN)
GND
Arduino Uno:
GND
ESP32:
GND
AO
Arduino Uno:
A0
ESP32:
GPIO 34 via divider
DO
Arduino Uno:
D2
ESP32:
GPIO 27
04

Example code

A minimal sketch to check the part works.

Rs/R0 reading for any MQ sensor · Arduino C++Verify & upload in Electrolark
const float RL = 10.0;      // load resistor on the module, kilo-ohms (check yours)
float R0 = 10.0;            // sensor resistance in clean air, set by calibration

float rs() {
  long sum = 0;
  for (int i = 0; i < 32; i++) sum += analogRead(A0);
  float v = sum / 32.0 * 5.0 / 1023.0;
  return RL * (5.0 - v) / v;
}

void setup() {
  Serial.begin(115200);
  delay(120000);            // let the heater warm up (much longer for the first use)
  R0 = rs();                // calibrate in clean air
}

void loop() {
  float ratio = rs() / R0;  // look up ppm from the datasheet curve for your gas
  Serial.print("Rs/R0 = "); Serial.println(ratio, 3);
  delay(1000);
}
05

Setup and tuning

Heater

feed 5 V to the heater from the supply rail; it draws about 150 mA.

Reading

read the module's analog output, which rises as gas increases.

Warm-up

burn in for 24 to 48 hours first, then allow a few minutes each start.

Calibration

record the clean-air resistance (R0) and use the datasheet Rs/R0 curve.

Placement

H2S is heavier than air, so mount the MQ136 low; ammonia rises, so mount the MQ137 higher.

06

What you need

Shop this list10 of 11 found in our store · ₹10,573

  • MQ-136 Hydrogen Sulfide (H2S) Gas Sensor Module – Analog & TTL Output: the part this guide coversMQ-136 Hydrogen Sulfide (H2S) Gas Sensor Module – Analog & TTL Output₹1,099
  • MQ-136 Hydrogen Sulfide (H₂S) Gas Detection Sensor – SnO₂ Semiconductor: another version this guide coversMQ-136 Hydrogen Sulfide (H₂S) Gas Detection Sensor – SnO₂ Semiconductor₹1,049
  • MQ-137 NH3 Ammonia Gas Sensor Module: another version this guide coversMQ-137 NH3 Ammonia Gas Sensor Module₹1,159
  • MQ-137 Ammonia Gas Detection Sensor – 5-500 ppm NH₃: another version this guide coversMQ-137 Ammonia Gas Detection Sensor – 5-500 ppm NH₃₹1,049
  • Winsen MQ137 Ammonia Gas Sensor – 5-500 ppm NH₃ Detection, SnO₂ Semiconductor: another version this guide coversWinsen MQ137 Ammonia Gas Sensor – 5-500 ppm NH₃ Detection, SnO₂ Semiconductor₹2,779
  • Winsen MQ138 VOC Gas Sensor – SnO2 Semiconductor, 5-500 ppm Range: another version this guide coversWinsen MQ138 VOC Gas Sensor – SnO2 Semiconductor, 5-500 ppm Range₹2,749
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • 5 V relay module with optocoupler: to switch a fan or alarm5V Relay Module with Optocoupler₹74
  • Buzzer module 3.3-5 V: for an audible alarmBuzzer Module 3.3–5V₹27
  • ADS1115 16-bit 4-channel ADC module: to read small sensor voltages accuratelyADS1115 16-Bit 4-Channel ADC Module₹199
07

Alternatives and when to choose them

  • ✓MQ gas sensors: the family overview.
  • ✓Winsen ZE03 modules: accurate H2S and NH3.
  • ✓DFRobot Gravity calibrated: ppm over I2C.
08

Common mistakes to avoid

  • !Reading before the sensor has warmed up.
  • !Using the module as the only safety alarm.
  • !Mounting the H2S sensor near the ceiling.
  • !Running the heater from a GPIO pin.
09

Frequently asked questions

Which MQ sensor detects hydrogen sulphide?

The MQ136 is made for H2S, the rotten-egg gas from sewage and drains.

Which MQ sensor detects ammonia?

The MQ137 is made for ammonia, common in poultry farms and cold storage.

Can these sensors give accurate ppm?

Only roughly after calibration; cross-sensitivity to other gases is high.

Where should I mount an H2S sensor?

Low down, because H2S is heavier than air and collects near the floor.

Are they safe-life protection devices?

No. Use certified gas detectors where people could be harmed.

Parts for this guide

  • MQ-136 Hydrogen Sulfide (H2S) Gas Sensor Module – Analog & TTL Output
    ₹1,099View
  • MQ-136 Hydrogen Sulfide (H₂S) Gas Detection Sensor – SnO₂ Semiconductor
    ₹1,049View
  • MQ-137 NH3 Ammonia Gas Sensor Module
    ₹1,159View
  • MQ-137 Ammonia Gas Detection Sensor – 5-500 ppm NH₃
    ₹1,049View
  • Winsen MQ137 Ammonia Gas Sensor – 5-500 ppm NH₃ Detection, SnO₂ Semiconductor
    ₹2,779View
  • Winsen MQ138 VOC Gas Sensor – SnO2 Semiconductor, 5-500 ppm Range
    ₹2,749View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • 5V Relay Module with Optocoupler
    ₹74View
  • Buzzer Module 3.3–5V
    ₹27View
  • ADS1115 16-Bit 4-Channel ADC Module
    ₹199View
Shop Gas, Air Quality & CO2 Sensors

Keep learning

Component guideIntermediateMQ Gas SensorsMQ sensors are cheap metal-oxide gas sensors: a heated tin-dioxide surface changes resistance when gas is present.3 min read · SensorsComponent guideIntermediateWinsen ZE03, ZE07, ZE12A, ZE15, ZE16B, ZE21Winsen ZE-series modules combine an electrochemical cell with a microcontroller that outputs calibrated ppm over UART and as an analog voltage.5 min read · SensorsComponent guideIntermediateDFRobot Gravity Calibrated Electrochemical Gas SensorsDFRobot Gravity calibrated gas sensors put a factory-calibrated electrochemical cell on a board that reports ppm (or percent volume for oxygen) over I2C or UART.4 min read · Sensors

Sources

  • Winsen MQ136, MQ137 and MQ138 datasheets

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the MQ-136 H2S and MQ-137 ammonia sensors isMQ-136 H2S and MQ-137 ammonia sensors pinoutWiring the MQ-136 H2S and MQ-137 ammonia sensorsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)5 items · ₹1,603

MQ-136 Hydrogen Sulfide (H2S) Gas Sensor Module – Analog & TTL Output · 5V Relay Module with Optocoupler · Buzzer Module 3.3–5V · ADS1115 16-Bit 4-Channel ADC Module · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

R0 is taken in clean air after 2 minutes. Rs/R0 falls as gas rises; read ppm off the datasheet curve.

Serial monitor115200 baud
Rs/R0 = 0.997

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question