The Adafruit SHTC3 STEMMA QT is a high-precision digital temperature and humidity sensor that offers a convenient way to add environmental sensing to your electronics projects. Utilizing the SHTC3 sensor chip, this module provides accurate and reliable readings of ambient temperature and relative humidity. Its I2C interface facilitates easy integration with microcontrollers such as Arduino, Raspberry Pi, and others. The STEMMA QT connectors also allow for quick plug-and-play functionality without the need for soldering, making it ideal for prototyping and educational purposes.
Pin Number | Name | Description |
---|---|---|
1 | VIN | Power supply (3.3V to 5V) |
2 | GND | Ground connection |
3 | SCL | I2C clock signal |
4 | SDA | I2C data signal |
5 | Qwiic/STEMMA QT | Connect to other Qwiic or STEMMA QT devices |
#include <Wire.h>
#include <Adafruit_SHTC3.h>
Adafruit_SHTC3 shtc3 = Adafruit_SHTC3();
void setup() {
Serial.begin(9600);
if (!shtc3.begin()) {
Serial.println("Couldn't find SHTC3 sensor!");
while (1) delay(1);
}
}
void loop() {
sensors_event_t humidity, temp;
shtc3.getEvent(&humidity, &temp); // Get new data
Serial.print("Temperature: ");
Serial.print(temp.temperature);
Serial.println(" degrees C");
Serial.print("Humidity: ");
Serial.print(humidity.relative_humidity);
Serial.println("% rH");
delay(1000); // Wait a second between measurements
}
Q: Can I use multiple SHTC3 sensors on the same I2C bus? A: Yes, but you will need to ensure each sensor has a unique I2C address. The SHTC3 does not have an address select pin, so you would need to use an I2C multiplexer to use multiple SHTC3 sensors on the same bus.
Q: How long does the sensor take to provide a reading? A: The SHTC3 sensor typically provides a reading within a few milliseconds. However, it is recommended to allow the sensor to acclimatize to the environment for more accurate readings.
Q: Is the sensor waterproof? A: No, the SHTC3 sensor is not waterproof. It should be protected from liquids and high humidity that can condense on the sensor.