TINKER PiEDESIGN IN INDIA

Air quality sensor MQ-135 with TinkerPie

Reacts to CO2, ammonia and smoke: a classroom air monitor.

TypeAnalog sensors
Connect toP10-P13
Gives0-100 % (dirtier = high)
SimulatorYes: a control appears under the simulated board

How it works

The MQ-135 has a small heated sensing layer. When gases such as ammonia, smoke, alcohol or more CO2 reach it, its resistance changes, and the reading rises. It shows if the air is getting worse, which is enough for a classroom air monitor.

How to wire it

Plug the module's A0 / OUT into P10 (or P11-P13 when Wi-Fi is off), VCC to 3.3 V, GND to GND.

Code

In blocks: Accessories category in TinkerPie Studio. As code:

// JavaScript
sensors.airQualityMQ135(Pin.P10)

// Arduino C++
sensors::airQualityMQ135(Pin::P10)

Good to know

Try it in TinkerPie Studio

Similar modules

More projects to try

Questions

Can I try the Air quality sensor MQ-135 without buying one?

Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.

Can the MQ-135 tell me the exact CO2 level?

Not accurately. It shows whether the air is getting better or worse. For real CO2 numbers, engineers use special NDIR sensors.