My Sparkfun SCD40 does not give data. Anything else to try before sending it back?
Tested on Arduino Nano:
SparkFun_SCD4x_Arduino_Library:
Example1_BasicReadings
SCD4x Example
SCD40::begin: got serial number 0xECED4B073B05
SCD4x::getFeatureSetVersion: Read value: 0x440
SCD4x::getFeatureSetVersion: Type read: 0x0
SCD4x::getFeatureSetVersion: Picked SCD40
SCD40::begin: Sensor is of type SCD40
..............................................
..............................................
..............................................
..........
Example7_SelfTest_FactoryReset
SCD4x Example
SCD40::begin: got serial number 0xECED4B073B05
SCD4x::getFeatureSetVersion: Read value: 0x440
SCD4x::getFeatureSetVersion: Type read: 0x0
SCD4x::getFeatureSetVersion: Picked SCD40
SCD40::begin: Sensor is of type SCD40
Periodic measurement is disabled!
Starting the self-test. This will take 10 seconds to complete...
SCD4x::performSelfTest: delaying for 10 seconds...
SCD4x::performSelfTest: sensor response is 0x4345
The self test was not successful
Starting the factory reset. This will take 1200ms seconds to complete...
The factory reset was successful
Tested on Raspberry Pi:
I ran scd4x_i2c_example_usage from
Please try Example9 (link below) and please try uncommenting the mySensor.enableDebugging(Serial); to enable extra debug messages. Please tell us what you see. (I’m wondering if getFeatureSetVersion is returning a new, unexpected value.)
On second thoughts, ignore my previous message. The non-zero self-test result indicates the device is very unhappy…
Please head over to Returns - SparkFun Electronics and please add a link to this thread in the " Reason for returning product(s):" box. It’s the URL above - ending in 66100.