Datasheet
You can try breathing on the sensor to increase the humidity. The sensor reacts very fast!
Library Reference
The library we have is simple and easy to use
You can create the Adafruit_SHT31 object with:
There are no pins to set since you must use the I2C bus!
Then initialize the sensor with:
This function returns True if the sensor was found and responded correctly and False if it was not found
The 0x44 is the i2c address you have the sensor set up for. By default its 0x44, you can also adjust the sensor for
0x45 and then pass that value in
Once initialized, you can query the temperature in °C with
Which will return floating point (decimal + fractional) temperature. You can convert to Fahrenheit by multiplying by 1.8
Adafruit_SHT31 sht31 = Adafruit_SHT31();
sht31.begin(0x44)
sht31.readTemperature()
© Adafruit Industries https://learn.adafruit.com/adafruit-sht31-d-temperature-and-humidity-sensor-breakout Page 13 of 20










