adafruit / Adafruit_CCS811

Arduino driver for CCS811 digital gas sensor
MIT License
65 stars 36 forks source link

no answer from sensor #21

Closed rwussi closed 4 years ago

rwussi commented 4 years ago

There is no answer from the function ccs.begin(). When I disconnect wak from gnd or or scl from A5-Port of the arduino-board, I get the answer failed... What is wrong?

include

Adafruit_CCS811 ccs; void setup() { Serial.begin(9600); Serial.println("CCS811 test"); if (!ccs.begin()) { Serial.println("Failed to start sensor! Please check your wiring."); while(1); } Serial.print("high"); //calibrate temperature sensor while(!ccs.available()); float temp = ccs.calculateTemperature(); ccs.setTempOffset(temp - 25.0); } void loop() { ...

ladyada commented 4 years ago

hi, where did you buy the sensor?

rwussi commented 4 years ago

I bought it from funduino! It is CJMCU-811.

ladyada commented 4 years ago

great, please contact funduino for tech support - they have support engineers that will help you!