AlexBelfegor / esphome-mq135

Yaml code for MQ135 sensor
MIT License
48 stars 14 forks source link

what is the multiply entry for? #7

Open martinwk opened 10 months ago

martinwk commented 10 months ago

I wondered. What is the 'multiply' attribute for in

    pin: A0
    name: "Gas ADC"
    update_interval: 1s
    filters:
      - multiply: 3.3 # for NodeMcu ESP8266 v3 Lua
sadnblueish commented 6 months ago

I believe this is for ESP8266 only...D1 Mini or NodeMCU etc which has built-in voltage divider on pin A0 to bring 3.3v to 1V. On ESP32, this shouldn't be required.