What it is: The MQ-3 is tuned for alcohol vapour — the sensor behind DIY breathalysers. It also reacts to benzine and some solvents.
How it works: Same principle as the MQ-2: a heated element whose resistance drops with alcohol concentration, read as an analog voltage on AO. This sketch shows a relative 0–100 level plus raw ADC.
Wiring:
MQ-3 AO -> GPIO0
MQ-3 VCC -> 5V (heater needs 5V)
MQ-3 GND -> GND
OLED VCC=3V3, GND=GND, SDA=GPIO4, SCL=GPIO5
VOLTAGE WARNING: put a divider on AO so the peak stays under 3.3V for the ESP32-C3 ADC.
Libraries: only "Adafruit SSD1306" and "Adafruit GFX Library".
On screen / Serial: relative alcohol level (0–100) and raw ADC. Breathe near it after some mouthwash to see it spike.
Gotchas: Needs burn-in and warm-up like all MQ sensors. It is NOT a legal/medical breathalyser — treat it as a fun relative indicator only.