SHT35 library error

While verifying the basic_demo.ino example for the Grove SHT35 Temp_Humi Sensor (and it failed), I received the error "... arduino.h: No such file or directory"

Sure enough, upon downloading the SHT35 library found in the web editor,(Grove___I2C_High_Accuracy_Temp_Humi_Sensor_SHT35-1.0.0) it shows #include "arduino.h". Bingo

Library names are case sensitive in the Arduino world and the correct name of the library is Arduino.h - not arduino.h.

The GitHub library is correct.

Someone needs to fix this Arduino on-line library. In the meantime, I hope this post helps others while I'll now have to figure out how to run customized libraries in the web editor.

Hi @bill245. Nice work finding the cause of the error!

Yeah, I see the fix was made a few years back:

The problem is the Seeed Studio developers made a mistake when creating a new release of the library to distribute the fix. This mistake causes only the outdated version 1.0.0 of the library to be available in the Arduino Library Manager and in Arduino Web Editor.

I have submitted a report to Seeed Studio about this:

If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.

I'll provide instructions you can follow to import the latest version of the library into Arduino Web Editor:

  1. Click the following link to open the library's GitHub repository:
    GitHub - Seeed-Studio/Seeed_SHT35
  2. Click the "<> Code ▾" button.
  3. Select Download ZIP from the menu.
  4. Wait for the download to finish.
  5. Select "Libraries" from the menu on the left side of the "Arduino Web Editor" window.
  6. Click the upward pointing arrow button ("Import") to the right side of the LIBRARY MANAGER button.
  7. If you get a popup about importing your sketchbook, click the IMPORT button.
  8. Select the downloaded file (Seeed_SHT35-master.zip).
  9. Click the Open button.
  10. Wait for "Arduino Web Editor" to display the notification that the library was successfully imported.
  11. Click the OK button.

You should now be able to compile sketches that use the "Grove - I2C High Accuracy Temp_Humi Sensor SHT35" library without getting that error about arduino.h

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.