As an Amazon Associate we earn from qualifying purchases.
The MQ series is a family of low-cost gas sensors that hobbyists and students use in electronics projects. Each model is tuned to respond best to a particular gas or group of gases. This page covers two common ones, the MQ-3 for alcohol vapor and the MQ-6 for liquefied petroleum gas (LPG), and explains how they work and how to use them in a circuit.
How MQ series gas sensors work
Most MQ sensors use a small sensing element made of a metal-oxide semiconductor, with a built-in heater. When the element is hot, gas molecules in the air change its electrical resistance. The more gas there is, the bigger the change.
The sensor itself only changes resistance. To turn that into a voltage you can measure, the sensor is wired in a voltage divider with a load resistor. Most ready-made modules already include this circuit.
A typical module gives you two outputs:
- Analog output (AO): a voltage that rises and falls with the gas concentration. Read it with an ADC.
- Digital output (DO): a high or low signal that flips when the gas level crosses a threshold. You set the threshold with the small potentiometer on the board.
MQ-3 alcohol detector gas sensor
The MQ-3 is most sensitive to alcohol vapor, which is why it appears in many DIY breath-alcohol projects. It can also react to some other vapors, so it is not specific to alcohol alone.
The photos below show the bare MQ-3 sensor from several angles.
MQ-3 sensor module
The module version mounts the MQ-3 on a small board with the load resistor, a comparator, a threshold potentiometer and a pin header. This is the easier option for beginners, since you only need to connect power, ground and an output pin.
MQ-6 liquefied petroleum gas sensor
The MQ-6 is aimed at LPG, mainly propane and isobutane, the gases found in cooking-gas cylinders. It responds less to alcohol and to smoke from cooking than some other MQ models, but it is still not selective enough to tell gases apart on its own.
MQ-6 isobutane and propane gas module
As with the MQ-3, the MQ-6 is also sold on a module board with analog and digital outputs.
Using an MQ sensor in a project
- Power it correctly. Most MQ modules run from a 5 V supply. The heater draws noticeably more current than a typical logic chip, so use a supply that can handle it.
- Let it warm up. The heater needs time to reach its working temperature. Readings are unstable at first, and the datasheet recommends a longer preheat for best results.
- Read the output. Connect AO to an ADC pin to track the level, or DO to a digital input for a simple alarm. If your microcontroller is 3.3 V, make sure the analog signal never exceeds its input limit.
- Set the threshold. For the digital output, turn the potentiometer until the output flips at the level you want, testing in clean air first.
- Calibrate. Raw ADC values are not parts per million. To get real concentrations you need the sensor’s resistance curve from the datasheet and a known reference.
If you use an Arduino board, our guide on how to read a gas sensor with Arduino walks through the wiring and code. The same approach works on other boards, including MSP430 and Tiva C parts, as long as the ADC input range matches the sensor voltage.
Project ideas
- A simple breath-alcohol indicator with the MQ-3 and a few LEDs.
- A kitchen LPG leak warning buzzer using the MQ-6.
- A building automation system that combines gas and temperature sensors, which you can first test in simulation.
- Gas and temperature based speed control of an AC motor, for example to drive an extractor fan.
Limits and safety
MQ sensors are inexpensive and good for learning and prototypes, but they are not certified safety devices. Their readings drift with temperature, humidity and age, and they respond to more than one gas. Do not rely on a home-built circuit as your only protection against a gas leak, and do not use an MQ-3 project to decide whether someone is safe to drive. Use a certified alarm for real safety needs.
Original listing details
The original page listed the following items. Prices were shown without a currency and stock figures were not updated, so treat them as historical and check with a current seller.
- MQ-3 alcohol detector gas sensor: price 90, 3 remaining.
- MQ-3 alcohol detector gas sensor module: price 140, 3 remaining.
- MQ-6 liquefied petroleum gas sensor: price 80, 0 remaining.
- MQ-6 LPG sensor isobutane propane gas module: price 135, 5 remaining.
FAQ
What does the MQ-3 sensor detect?
The MQ-3 is designed mainly for alcohol vapor, such as ethanol in breath. It can also respond to some other vapors, so results are indicative rather than exact.
What gases can the MQ-6 detect?
The MQ-6 targets LPG, mainly propane and isobutane. It is commonly used in leak-detection prototypes for cooking gas.
Why are my MQ sensor readings unstable?
The most common cause is insufficient warm-up time. Unstable power, changes in humidity or temperature, and a brand-new sensor that has not yet settled can also cause drift.
Do I need the module, or can I use the bare sensor?
The module is easier because it includes the load resistor and threshold circuit. With the bare sensor you must supply the heater power and build the voltage divider yourself.