Source: https://mokxi.com/learn/path/gas-sensors-honestly
Updated: 2026-11-20

All paths

# MQ gas sensors, honestly

Heaters, Rs/R0, calibration, cross sensitivity and alarms on the cheap MQ sensors, and why a hobby build never replaces a listed detector.

Arduino Uno R3 Free 7 lessons 6 h 4 chapters 2,335 XP Embedded engineering · Intermediate +150 XP

0 of 7 done

Start the course free The heater and burn-in Lesson plan for teachers

What you will build

## 3 projects, built step by step

7 lessons in 4 chapters, about 6 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### Rs/R0 ratios

Turn AO into the element's resistance, then into the ratio the datasheet's chart is drawn in, then into parts per million.
Open it in the simulator

Chapter 2 project

### Cross sensitivity

Every MQ sensor answers to many gases and cannot say which one it smells. Fool all three sensors on the bench.
Open it in the simulator

Chapter 3 project

### What a listed detector does

A CO alarm listed to UL 2034 decides by exposure over time, sounds a set pattern, tests itself and reports faults. Sketch the ideas, and learn why a sketch is never the alarm.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## How the sensor works

A heated tin dioxide film, its warm-up, and the ratio its chart is drawn in.

Open 218 XP

### The heater and burn-in

Inside an MQ sensor is a heater and a film of tin dioxide. Watch a cold one read as gas, then settle, and learn why every gas sketch waits.

0 of 6 steps

Start What is in it

Project Locked 436 XP

### Rs/R0 ratios

Turn AO into the element's resistance, then into the ratio the datasheet's chart is drawn in, then into parts per million.

0 of 6 steps

5 questions, graded as you go.

Chapter 2

## Readings that mean something

Measure R0, and learn which gas a reading can and cannot name.

Locked 218 XP

### Calibration in clean air

R0 varies by a factor of two or more between sensors. Measure it in clean air, and see what trusting the datasheet's typical value costs.

0 of 6 steps

Project Locked 436 XP

### Cross sensitivity

Every MQ sensor answers to many gases and cannot say which one it smells. Fool all three sensors on the bench.

0 of 6 steps

5 questions, graded as you go.

Chapter 3

## Alarms, honestly

Hysteresis, exposure over time, test buttons and faults, and what a listing means.

Locked 249 XP

### Alarms with hysteresis

A reading that hovers near a threshold turns a simple alarm on and off all day. Two thresholds fix it.

0 of 7 steps

Project Locked 498 XP

### What a listed detector does

A CO alarm listed to UL 2034 decides by exposure over time, sounds a set pattern, tests itself and reports faults. Sketch the ideas, and learn why a sketch is never the alarm.

0 of 7 steps

5 questions, graded as you go.

Chapter 4

## Boss

A garage fume alarm that knows what it is not.

Locked 280 XP

### Boss: a garage fume alarm

Put it together: warm-up lockout, calibration at boot, a fan on CO, a dose alarm, a fuel vapor alarm and a test button. A project that sits beside listed alarms, never in their place.

0 of 8 steps

4 questions, graded as you go.

Syllabus

## Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### How the sensor works

- The heater and burn-in Inside an MQ sensor is a heater and a film of tin dioxide. Watch a cold one read as gas, then settle, and learn why every gas sketch waits.
- Rs/R0 ratios Turn AO into the element's resistance, then into the ratio the datasheet's chart is drawn in, then into parts per million.

Chapter 2

### Readings that mean something

- Calibration in clean air R0 varies by a factor of two or more between sensors. Measure it in clean air, and see what trusting the datasheet's typical value costs.
- Cross sensitivity Every MQ sensor answers to many gases and cannot say which one it smells. Fool all three sensors on the bench.

Chapter 3

### Alarms, honestly

- Alarms with hysteresis A reading that hovers near a threshold turns a simple alarm on and off all day. Two thresholds fix it.
- What a listed detector does A CO alarm listed to UL 2034 decides by exposure over time, sounds a set pattern, tests itself and reports faults. Sketch the ideas, and learn why a sketch is never the alarm.

Chapter 4

### Boss

- Boss: a garage fume alarm Put it together: warm-up lockout, calibration at boot, a fan on CO, a dose alarm, a fuel vapor alarm and a test button. A project that sits beside listed alarms, never in their place.

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About MQ gas sensors, honestly

Is MQ gas sensors, honestly free?

Yes. All 7 lessons of MQ gas sensors, honestly are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does MQ gas sensors, honestly take?

About 6 hours: 7 lessons in 4 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Rs/R0 ratios, Cross sensitivity and What a listed detector does.

Where do I start?

With "The heater and burn-in", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
