This library is needed to operate the SCD40 sensor but it is no longer available on Arduino IOT. How can I get it available again?
It looks available to me.
Yes it is on github but if you look in IOT libraries it is not there. My sensor has stopped working.
So download it from Github and install it manually?
Yes but why does Arduino IOT not provide it when it was there working before?
I'm not sure I understood correctly what you mean by this. Please provide a more detailed description of what you mean by this in a reply on this forum thread to help us to understand it, including:
- What did you do?
- What were the results you expected from doing that thing?
- What were the results you observed that did not match your expectations?
Make sure to include the full and exact text of any error or warning messages you might have encountered.
When you say "Arduino IOT", are you referring to Arduino Cloud?
Sorry if I am not clear. I have used the SCD40 for about two years with no problems. Recently it stopped working and Arduino IOT Cloud asked me to upload the software again for security reasons. When I verify the software I get the following error:
/run/arduino/sketches/Atmosphere_ESP32_Wroom_32_dec13a/Atmosphere_ESP32_Wroom_32_dec13a.ino:13:10: fatal error: SensirionI2CScd4x.h: No such file or directory
#include <SensirionI2CScd4x.h> // SCD40 Sensor
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
When I go to libraries and search for this library, it says no result found.
Yes it is available on GitHub but Arduino IOT Cloud always has libraries available, I have never had to install one from GitHub before. I just hope Arduino IOT cloud can make it available again.
Thanks for the clarification.
By default, Arduino Cloud uses the newest version of each of the libraries. This is convenient because it means your projects will automatically benefit from any bug fixes or enhancements made by the library developers. However, it can sometimes be disruptive if the library developers make a new release with breaking changes.
That is what happened here. Four days ago, the developers of the "Sensirion I2C SCD4x" library made a new release, version 1.0.0:
In this release, they changed the name of the library's header file from SensirionI2CScd4x.h
to SensirionI2cScd4x.h
(note the I2C
changed to I2c
). This is why your sketch now fails to compile.
To fix the error, change line 13 of your sketch from this:
#include <SensirionI2CScd4x.h>
to this:
#include <SensirionI2cScd4x.h>
After making that change, try compiling or uploading your sketch again. Hopefully this time the "No such file or directory
" error will not occur.
Just to be clear, even though the need to upload the sketch again resulted in you encountering the error, there is no direct connection between the two things.
It is there for me:
Maybe you didn't use the appropriate search query.
Thanks so much for your prompt assistance.
Actually there were a lot of other changes needed so it was best to follow the example code that came with the revised library.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.