CCS811/BME280 (Qwiic) Environmental Combo

Hi, I’m using the CCS811/BME280 (Qwiic) Environmental Combo sensor, which is my first Sparkfun product. I’m trying to get it to work. So I’m using this sensor with a Qwiic / Stemma QT QW-4CF Cord that I’m plugging into a 38 pin ESP32. The 3.3V on the 3.3V of the esp32, the GND on the GND, the SDA on pin 21 and the SCL on pin 22. I don’t know how to declare or what to do to make it work. Here’s my code and the error I get:
link : Cordon Qwiic / Stemma QT QW-4CF - Gotronic

#include <Wire.h>
#include “SparkFunBME280.h”
#include “SparkFunCCS811.h”

BME280 bme280;
CCS811 ccs811;

void setup() {
Serial.begin(115200);
Wire.begin();

if (bme280.beginI2C() == false) {
Serial.println(“Error BME280 !”);
while (1);
}

if (ccs811.begin() == false) {
Serial.println(“Error CCS811 !”);
while (1);
}

while (!ccs811.dataAvailable()) {
delay(500);
Serial.println(“Waiting CCS811…”);
}
}

void loop() {
float temperature = bme280.readTempC();
float humidity = bme280.readFloatHumidity();
float pressure = bme280.readFloatPressure();

ccs811.setEnvironmentalData(humidity, temperature);

if (ccs811.dataAvailable()) {
ccs811.readAlgorithmResults();
uint16_t eco2 = ccs811.getCO2();
uint16_t tvoc = ccs811.getTVOC();

Serial.print("Temperature:");
Serial.print(temperature);
Serial.print("\t");

Serial.print("Humidity:");
Serial.print(humidity);
Serial.print("\t");

Serial.print("CO2:");
Serial.print(eco2);
Serial.print("\t");

Serial.print("TVOC:");
Serial.println(tvoc);

}
else {
Serial.println(“No data CCS811…”);
}

delay(1000);
}

Error :

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

configsip: 0, SPIWP:0xee

clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00

mode:DIO, clock div:1

load:0x3fff0030,len:4888

load:0x40078000,len:16516

load:0x40080400,len:4

load:0x40080404,len:3476

entry 0x400805b4

E (40) i2c.master: I2C hardware NACK detected

E (40) i2c.master: I2C transaction unexpected nack detected

E (40) i2c.master: s_i2c_synchronous_transaction(924): I2C transaction failed

E (45) i2c.master: i2c_master_multi_buffer_transmit(1186): I2C transaction failed

E (52) i2c.master: I2C hardware NACK detected

E (56) i2c.master: I2C transaction unexpected nack detected

E (61) i2c.master: s_i2c_synchronous_transaction(924): I2C transaction failed

E (68) i2c.master: i2c_master_receive(1240): I2C transaction failed

Error CCS811 !

I tested another code and got this error.

Thank you in advance for your help.

I saw your earlier post.

The error is because the SDA line is not released (held low and thus NACK). This looks more like hardware. It might be that one of your sensors has gone bad, a short circuit to GND on SDA or do you still have the pull-up resistors on the board enabled? Else try to download and use an i2C scanner from the internet.

I’ve scanned the I2C address, and I’ve got both, the default ones.

none of the error messages that were shown before ??
What adresses were detected ?

Scan I2C…
I2C device found at address 0x5B
I2C device found at address 0x77

It’s a compilation error that I have, so how could it have anything to do with my hardware?

(post deleted by author)

I was still under the impression it was the error mentioned in the earlier post. This is indeed a compilation error. Looks that the Sparkfun library is not compatible.