Waiting for data
–
No readings yet.
Sensor value
Reading Elevated line Smoke line
Baseline–
Average–
Peak–
Smoke events0
Smoke events in this range
- None.
Detection settings
The sensor reports a raw number. Smoke is flagged when the value rises above its recent baseline (the 25th percentile of the last 15 minutes), so it adapts to your room and sensor.
Connect a device
The sensor publishes to the IMITECH MQTT broker; this page reads from it. The password is kept by the site owner.
ESP32 sketch (needs the PubSubClient library): see esp32-mq2.ino.
The MQ2 reacts to smoke and to several gases (LPG, methane, alcohol, hydrogen), so a high value means "something burnt or gassy", not specifically cigarette smoke. Let a new sensor warm up for a few minutes before trusting it.