TINKER PIEDESIGN IN INDIA

Gas / smoke sensor MQ-2 with TinkerPie

Detects LPG, smoke and alcohol vapour. Let it warm up for a minute.

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

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.gasMQ2(Pin.P10)

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

Projects with the Gas / smoke sensor MQ-2

Gas leak detectorAn MQ-2 sensor: the bar graph rises with gas or smoke, and it beeps above 60 %.Sensor projects

Similar modules