Source: https://mokxi.com/parts/mq3
Updated: 2026-11-16

Part

# Alcohol sensor, MQ-3

An MQ-3 alcohol sensor on an LM393 board. It reads in mg/L, as its datasheet does. It reads high while it warms up. Drag the slider to let gas in.

See every part

- 4 pins
- 5 settings
- In 1 project

Drawn live by the editor's own code, at the size you see it.

At a glance

## The Alcohol sensor, MQ-3 in brief

What it is, and every setting the properties panel gives it.

The MQ-3 is the alcohol sensor of the MQ family, the breathalyzer in sensor kits: a heated tin dioxide element on the blue four-pin LM393 board, with pins VCC, GND, DO and AO. The heater needs 5 volts: VCC goes to 5 V on an Uno with AO on A0, and beside an ESP32 to the 5 V (VIN) pin, with a divider on AO before the ADC pin, since AO can rise past 3 volts. Mokxi reads it off the datasheet’s chart in milligrams per liter, not ppm: mg/L = 0.3934 x (Rs/R0)^-1.504, with R0 1 MOhm at 0.4 mg/L, clean air at 60 R0, a 200 k load, and a slider from 0 to 10 mg/L. That load makes clean air only about 17 mV, three or four counts on a 5 V Uno, which is why the built-in breathalyzer calibrates against the 1.1 V internal reference. The board reads high through a 20 second warm-up, and DO pulls low when AO passes the trimmer at 0.3 of the supply. The classic mistake is reading it in ppm; one mg/L is about 530 ppm. Burn-in, humidity, temperature and the heater current are not modeled.

Family

Sensors

Pins

4

gas

alcohol (or benzine)

r0

1000000

rl

200000

threshold

0.3

warmup

20

Pins

## 4 pins

Named as the editor names them, so a wire lands where you expect it.

Pin

Role

What it does

VCC

Input or output

Supply, 5 V. The heaters are specified at 5.0 V and draw about 150 mA. On 3.3 V the board runs with a cool element, as the MQ-2 page describes: lower, flatter readings and a longer warm-up.

GND

Input or output

Ground.

DO

Output

Low when the gas is past the trimmer (the MQ-131: when the ozone is). Open collector with a 10 k pull-up.

AO

Output

The sensor over the load resistor. Higher means more gas, except on the MQ-131.

How to use it

## How to use the MQ-3 alcohol sensor with an Arduino

Wire VCC to 5 V, GND to GND and AO to A0, as the kit circuit here does, and print analogRead(A0) twice a second. Alcohol vapor lowers the element’s resistance, so the reading climbs as you drag the alcohol level up, after a 20 second warm-up in which it starts high and sinks.

In clean air the MQ-3 is about 60 times its R0 over a 200 k load, which is only about 17 mV, three or four counts on a 5 V Uno. That is too coarse to calibrate against, so the built-in breathalyzer measures clean air against the Uno’s 1.1 V reference with analogReference(INTERNAL), then switches back and lets the MQUnifiedsensor library work out milligrams per liter.

Its chart, and the part’s slider, are in mg/L, not ppm. One mg/L of ethanol vapor is about 530 ppm, so a ppm formula borrowed from an MQ-2 sketch is off by a long way.

Part pin

Board pin

AO

A0

VCC

5 V

GND

GND

The heater needs 5 V, so beside an ESP32 power VCC from the 5 V (VIN) pin and put a divider on AO before the ADC pin: a strong whiff takes AO past 3 V.

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

How it is modeled

## What is true about the Alcohol sensor, MQ-3, here

In its help article’s own words: what the simulation gets right, and where it stops.

### Not modeled

The MQ-7's and MQ-9's heater cycle. Their sheets run the heater at 5 V for 60 s,
then 1.4 V (MQ-7) or 1.5 V (MQ-9) for 90 s, and read CO at the end of the low phase;
the CO line is that phase's. The blue boards have no circuit for the cycle and hold
the heater at 5 V, where the real element does not follow its CO line at all. This
model reads the CO line all the time, and the part's description says so. The cycle
is not simulated yet.

CO2 on the MQ-135. The chart's CO2 line runs from 10 to 200 ppm, but the air
already holds about 420 ppm, which the sensor reads as part of clean air. The slider is
CO2 above that, which is how the library's CO2 example takes it (it adds 400). The
MQ-135 cannot tell CO2 from ammonia, alcohol or a breath; one gas at a time is
modeled, the one in gas.

Everything the MQ-2 page lists: the 24 to 48 hour burn-in the sheets ask for, the
heater's current, humidity and temperature, mixtures of gases.

From MQ gas sensors: MQ-3 to MQ-137, in full.

Projects

## See the Alcohol sensor, MQ-3 in a project

One built-in project uses it. It opens in the editor, already wired.

Boards

## The boards it is shown on

This board has a built-in project with the Alcohol sensor, MQ-3 in it.

- Arduino Uno R3

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the Alcohol sensor, MQ-3

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.

Start building free Open the editor
