MQ-2 Smoke and Gas Sensor Monitor with WeMos D1 Mini on Home Assistant (ESPHome)

Use MQ-2 Smoke and Gas Sensor Connect to WeMos D1 Mini (ESP-8266)

ESP8266 WeMos D1 Mini MQ-2 Smoke Gas

Configuration ESPHome on Home Assistant.

esphome:
  name: esp8266_wemos_d1_mini
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: "your_ssid"
  password: "your_password"
  fast_connect: true
  manual_ip:
    static_ip: 192.168.1.32
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    dns1: 192.168.1.1

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

# MQ2 Smoke Gas Sensor
sensor:
  - platform: adc
    pin: A0
    name: "WeMos D1 Mini Gas Sensor"
    update_interval: 1s
    filters:
      - multiply: 100
    unit_of_measurement: "%"
    icon: "mdi:percent"