Sht30 Sample code not working

Hi,

I have a greenhouse project where I want to start using an Adafruit SHT30 sensor. This sensor chosen because my other sensors are failing due to condensation in the high humidity environment (95%rh).

I have received the sensor and cannot get the sample code to compile in the SHT30 library found in Particle Build. It fails with the errors below.

I don't have any idea how to troubleshoot this, can someone help?

error ../hal/argon/pinmap_defines.h:46:13: expected unqualified-id before numeric constant

error ../hal/argon/pinmap_defines.h:45:13: expected unqualified-id before numeric constant

error ../hal/argon/pinmap_defines.h:44:13: expected unqualified-id before numeric constant

error ../hal/argon/pinmap_defines.h:43:13: expected unqualified-id before numeric constant

error ../hal/argon/pinmap_defines.h:42:13: expected unqualified-id before numeric constant

I get the same error when I compile. It appears the Adafruit sht31 library is supposed to be compatible with the sht30.

1 Like

For gen3 devices, I use the adafruit-sht31 library with a SHT-30 Mesh-protected Weather-proof Temperature/Humidity Sensor - 1M Cable:
https://community.particle.io/t/bme280-temp-sensor-predictable-error-in-reading/57498/30

1 Like

@jstobaugh @robc

Yes, that’s the sensor I am using. I just gave the sht31 library a try, and can confirm that it’s working. Thanks both, J

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