Best CO2 sensor

Sure, here it is (only section related to CO2 sensor):

uart:
  - rx_pin: D5
    tx_pin: D6
    baud_rate: 9600
    id: uart_mhz19

  # sensor definition (Co2 and temperature) 
sensor:
  - platform: mhz19
    co2:
      name: "esp99test CO2"
    temperature:
      name: "esp99test Temperature from CO2 sensor"
    update_interval: 60s
    automatic_baseline_calibration: false
    uart_id: uart_mhz19
    id: esp99_co2

  # switch configuration to turn ABC calibration on/off
switch:
  - platform: template
    name: "esp99test MH-Z19B ABC"
    optimistic: true
    on_turn_on:
      mhz19.abc_enable: esp99_co2
    on_turn_off:
      mhz19.abc_disable: esp99_co2

  # service definition to force manual zero calibration from HA
api:
  services:
    - service: esp99test_mhz19_calibrate_zero
      then:
        - mhz19.calibrate_zero: esp99_co2

Practically the switch (to turn ABC calibration on/off) is not needed in my case - it is disabled in the sensor configuration.
If I want to calibrate I move sensor outside and after 30 minutes I perform service to zero calibrate.

4 Likes