I added support for the SCD4X CO2 sensor to ESPHome. Pull request on Github.