ESP32-C3 Smoke Sensor Firmware v1.0.0
Features
- MQ2 smoke/gas sensor support on GPIO4 (analog) and GPIO3 (digital)
- 0.8V smoke detection threshold with template binary sensor
- WiFi connectivity to AhoyIOT network (DHCP)
- Home Assistant API integration
- OTA updates enabled
- Web server for diagnostics
- 60-second sensor warmup on boot
Wiring
- MQ2 A0 → GPIO4 (analog)
- MQ2 D0 → GPIO3 (digital)
- MQ2 VCC → 5V
- MQ2 GND → GND
Files
- esp32c3-smoke-sensor.factory.bin (1.1M) - Full factory image with bootloader
- esp32c3-smoke-sensor.bin (989K) - OTA update image
Flashing
USB (initial flash):
esphome run esp32-c3-supermini-smoke-fan.yaml --device /dev/ttyUSB0OTA (updates):
esphome run esp32-c3-supermini-smoke-fan.yaml --device <IP_ADDRESS>Or use esptool:
esptool.py --port /dev/ttyUSB0 write_flash 0x0 esp32c3-smoke-sensor.factory.bin