Hi
I see that you are using the pins marked with tx and rx. I know that they maybe used by the esp itself. I suggest to try to use the pin GPIO 4 and GPIO5 instead (Usually d1 and d2). The esphome will use the softserial instead. Read that the esp8266 always uses soft serial. More reason to use more safe pins like the gpio4 and gpio5.
That the only thing that I could come up with.
/Mattias
My config below.
Note that it really old I have not updated mine to the latest version. It keeps going.
esphomeyaml:
name: co2sensor
platform: ESP8266
board: d1
wifi:
ssid: *****
password: *******
# Enable logging
logger:
# Enable Home Assistant API
api:
password: '********'
ota:
password: '*********'
uart:
rx_pin: 4
tx_pin: 5
baud_rate: 9600
sensor:
- platform: mhz19
co2:
name: "MH-Z19 CO2 Value"
temperature:
name: "MH-Z19 Temperature"
update_interval: 60s```