CO2 Sensor SCD40

I tryed to flash a esp32 mini for a CO2 Sensor (SCD40).
I got values for temperature and humidity, but not for CO2

has anyone this sensor up an runinig and can share his yaml code ?

Thanks
Volker

Hey, this is the sensor that works for me. Nothing Special, from what I remember, it can take quite a few hours to initialize.

i2c:
  - sda: ${sda_pin}
    scl: ${scl_pin}
    id: bus_a

sensor:
  - platform: scd4x
    altitude_compensation: 308m
    id: co2
    update_interval: 10s
    i2c_id: bus_a
    co2:
      name: "CO2"
    temperature:
      name: "Temperature"
      id: temperature
    humidity:
      name: "Humidity"
      id: humidity