Overview
The MQ-3 is a low-cost semiconductor gas sensor manufactured by Winsen Electronics, engineered specifically for detecting ethanol () gas and alcohol vapor in ambient air.
The sensor element consists of a micro ceramic tube coated with Tin Dioxide (), heated internally by a nickel-chromium heating coil. Clean air exhibits low electrical conductivity; when alcohol vapor is present, the surface conductivity of increases proportionally to gas concentration.
Standard MQ-3 breakout boards pair the 6-pin sensor head with an LM393 voltage comparator, providing both a continuous analog voltage output (AO) for concentration measurement and a digital threshold output (DO) with an adjustable potentiometer. It is widely used in DIY breathalyzers, alcohol detection alarms, and environmental monitors.
Quick reference
Operating voltage (VCC) | 5.0 V DC (required for internal heater) |
| Heater resistance () | at room temp |
| Heater power consumption | (~150 mA at 5V) |
| Detection gas | Alcohol / Ethanol vapor |
| Concentration range | to ( to ) |
| Outputs | Analog Voltage (AO) & Digital Threshold (DO) |
| Warm-up time | 24–48 hours initial preheating / 3 minutes before sampling |
Pinout
Standard 4-pin 0.1" (2.54 mm) breakout module header:
| Pin | Name | Type | Description |
|---|---|---|---|
| 1 | VCC | Power | Supply input (+5.0 V DC required for heater) |
| 2 | GND | Power | Ground reference (0 V) |
| 3 | DO | Digital Output | LM393 comparator digital output (Low when gas exceeds threshold) |
| 4 | AO | Analog Output | Analog output voltage proportional to alcohol concentration |
Specifications
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions |
|---|---|---|---|---|---|---|
| Supply Voltage | 4.9 | 5.0 | 5.1 | V | DC | |
| Heater Voltage | 4.9 | 5.0 | 5.1 | V | AC or DC | |
| Heater Current | 130 | 150 | 180 | mA | ||
| Sensing Resistance | 1.0 | — | 10.0 | kΩ | In Alcohol | |
| Concentration Ratio | 0.2 | — | 0.6 | — | ||
| Response Time | — | — | s | response | ||
| Recovery Time | — | — | s | recovery |
Calibration & Sensor Resistance Formula
The analog output voltage () is measured across a load resistor (, typically on breakout boards):
- Clean Air Calibration (): Measure in fresh air, calculate , and divide by the clean air constant () to obtain .
- Gas Concentration Calculation: Calculate ratio and apply log-log interpolation based on the datasheet sensitivity curve:
Wiring
| MQ-3 Pin | → | Arduino Uno | ESP32 (with 3.3V ADC divider) | Notes |
|---|---|---|---|---|
VCC | 5V | External 5V Power Supply | Do not power from 3.3V | |
GND | GND | GND | System ground | |
AO | Analog Pin A0 | VP / GPIO36 (ADC1) | Use voltage divider on ESP32 | |
DO | Digital Pin D2 | GPIO 4 | Digital threshold trigger |
High Heater Power & Warm-Up Time Warning:
- The MQ-3 internal heater draws up to 180 mA at 5V, getting warm to the touch during normal operation. Do not attempt to power
VCCfrom low-current 3.3V pins or FTDI serial adapters. - New MQ-3 sensors require an initial 24 to 48-hour burn-in period powered continuously to burn off factory coating and stabilize baseline readings.
Example
const int mq3AnalogPin = A0;
void setup() {
Serial.begin(9600);
Serial.println("MQ-3 Alcohol Sensor Warming Up...");
delay(10000); // 10 second quick warm-up
}
void loop() {
int rawADC = analogRead(mq3AnalogPin);
float voltage = (rawADC / 1023.0) * 5.0;
Serial.print("Raw ADC: "); Serial.print(rawADC);
Serial.print(" | Voltage: "); Serial.print(voltage); Serial.print(" V -> ");
if (voltage > 2.0) {
Serial.println("ALCOHOL DETECTED!");
} else {
Serial.println("Air Clean");
}
delay(1000);
}
Common mistakes
- Powering
VCCwith 3.3V: Operating the heater below 4.9V prevents from reaching its operating temperature (), rendering the sensor insensitive. - Skipping preheating: Taking readings immediately after applying power results in false high readings during the first 3 minutes of heater warm-up.
Notes
- MQ Sensor Family: MQ-2 (Gas/Smoke), MQ-3 (Alcohol), MQ-7 (Carbon Monoxide), MQ-135 (Air Quality/Ammonia).
Assets & downloads
- datasheetdatasheet
- product-pagereference