Stufin
Home Quick Cart Profile

Sensirion SHT30-DIS I2C humidity & temperature sensor

Buy Now on Stufin

Name

Sensirion SHT30-DIS I2C Humidity & Temperature Sensor

Description

The Sensirion SHT30-DIS is a high-accuracy, low-power digital humidity and temperature sensor that communicates over the I2C bus. This sensor is designed for a wide range of applications, including industrial, consumer, and IoT devices, where precise and reliable environmental monitoring is essential.

Functionality

The SHT30-DIS sensor measures relative humidity (RH) and temperature with high precision and accuracy. The sensor's functionality can be summarized as follows

Measures relative humidity (RH) in the range of 0-100% RH

Measures temperature in the range of -40C to 125C

Provides accurate and reliable measurements with low power consumption

Communicates with a microcontroller or other devices over the I2C bus

Key Features

  • High Accuracy: The SHT30-DIS sensor offers high accuracy for both humidity and temperature measurements, with a typical accuracy of 1.5% RH and 0.2C, respectively.
  • Low Power Consumption: The sensor has a low power consumption of 1.5 mA (typical) during measurement, making it suitable for battery-powered devices.
  • Fast Response Time: The SHT30-DIS sensor has a fast response time, allowing it to quickly adapt to changes in the environment.
  • I2C Interface: The sensor uses a standard I2C interface, making it easy to integrate into a wide range of microcontrollers and systems.
  • Small Form Factor: The SHT30-DIS is available in a compact 3.3 x 3.3 mm DFN package, making it suitable for space-constrained applications.
  • ROHS and REACH Compliance: The sensor is compliant with ROHS and REACH regulations, making it suitable for use in a wide range of applications.
  • Operating Voltage: The SHT30-DIS can operate from a supply voltage of 1.5 V to 5.5 V, making it compatible with a wide range of power sources.
  • Resistance to Contaminants: The sensor is designed to be resistant to contaminants, such as dust, dirt, and other environmental pollutants.

Additional Features

  • Wake-up and Sleep Mode: The sensor has a wake-up and sleep mode, allowing it to conserve power when not in use.
  • Checksum Calculation: The SHT30-DIS sensor provides a built-in checksum calculation to ensure data integrity and accuracy.
  • Multi-Voltage Support: The sensor supports multiple voltage levels, making it compatible with a wide range of systems and applications.

Applications

  • Industrial Automation: The SHT30-DIS sensor is suitable for industrial automation applications, such as monitoring humidity and temperature in manufacturing processes.
  • Consumer Electronics: The sensor is suitable for use in consumer electronics, such as smart home devices, wearables, and mobile devices.
  • IoT Devices: The SHT30-DIS is suitable for use in IoT devices, such as environmental monitoring systems, agriculture, and smart buildings.
  • Medical Devices: The sensor is suitable for use in medical devices, such as respiratory care systems and medical diagnostics.

Conclusion

The Sensirion SHT30-DIS I2C humidity and temperature sensor is a high-accuracy, low-power digital sensor that offers reliable and accurate measurements for a wide range of applications. Its compact form factor, low power consumption, and I2C interface make it an ideal choice for integrating into a variety of systems and devices.

Pin Configuration

  • Sensirion SHT30-DIS I2C Humidity & Temperature Sensor Pinout
  • The Sensirion SHT30-DIS is a digital humidity and temperature sensor that communicates over the I2C protocol. The sensor has a total of 6 pins, which are explained below:
  • Pin 1: Vin (Supply Voltage)
  • Function: Power supply input
  • Voltage Range: 2.15V to 5.5V
  • Recommended Voltage: 3.3V or 5V
  • Description: This pin is used to supply power to the sensor. Make sure to connect it to a stable voltage source within the recommended range.
  • Pin 2: GND (Ground)
  • Function: Ground connection
  • Description: This pin is the ground reference point for the sensor. Connect it to the ground of your circuit or system.
  • Pin 3: SCL (I2C Clock)
  • Function: I2C clock signal
  • Description: This pin is used for the I2C clock signal. It should be connected to the clock pin of your microcontroller or other I2C device.
  • Pin 4: SDA (I2C Data)
  • Function: I2C data signal
  • Description: This pin is used for the I2C data signal. It should be connected to the data pin of your microcontroller or other I2C device.
  • Pin 5: NC (No Connection)
  • Function: No internal connection
  • Description: This pin is not connected to any internal circuitry and should be left floating or connected to GND (Ground).
  • Pin 6: NC (No Connection)
  • Function: No internal connection
  • Description: This pin is not connected to any internal circuitry and should be left floating or connected to GND (Ground).
  • Connection Structure:
  • To connect the SHT30-DIS sensor to your microcontroller or other I2C device, follow this structure:
  • 1. Connect Vin (Pin 1) to a stable voltage source (e.g., 3.3V or 5V).
  • 2. Connect GND (Pin 2) to the ground of your circuit or system.
  • 3. Connect SCL (Pin 3) to the I2C clock pin of your microcontroller or other I2C device.
  • 4. Connect SDA (Pin 4) to the I2C data pin of your microcontroller or other I2C device.
  • 5. Leave pins 5 and 6 (NC) floating or connect them to GND (Ground).
  • Note:
  • Make sure to use a 2.2 k pull-up resistor on the SDA line to ensure reliable communication.
  • Consult the datasheet and your microcontroller's documentation for specific I2C protocol settings and pin connections.
  • By following this pinout and connection structure, you can successfully integrate the Sensirion SHT30-DIS I2C humidity and temperature sensor into your IoT project.

Code Examples

Sensirion SHT30-DIS I2C Humidity & Temperature Sensor Documentation
Overview
The Sensirion SHT30-DIS is a high-accuracy, low-power humidity and temperature sensor that communicates over I2C. It is designed for use in a wide range of applications, including IoT devices, wearables, and industrial automation systems. This documentation provides a detailed overview of the sensor's features, pinout, and usage examples.
Features
High accuracy: 2% RH, 0.2C
 Low power consumption: 2.1mA (typical)
 I2C interface: 100 kHz, 400 kHz, and 1 MHz
 Operating temperature range: -40C to 125C
 Humidity range: 0% to 100% RH
 Supply voltage: 1.8V to 3.6V
Pinout
The SHT30-DIS sensor has a 6-pin package with the following pinout:
VCC (1): Power supply (1.8V to 3.6V)
 GND (2): Ground
 SCL (3): I2C clock line
 SDA (4): I2C data line
 NC (5): Not connected
 ADDR (6): I2C address pin (pull-up or pull-down for address selection)
Usage Examples
Example 1: Arduino Sketch
This example demonstrates how to use the SHT30-DIS sensor with an Arduino board to read temperature and humidity values.
```cpp
#include <Wire.h>
#define SHT30_ADDRESS 0x40 // Default I2C address
void setup() {
  Serial.begin(9600);
  Wire.begin();
}
void loop() {
  uint16_t humidity, temperature;
// Read humidity and temperature values
  humidity = readHumidity();
  temperature = readTemperature();
Serial.print("Humidity: ");
  Serial.print(humidity);
  Serial.println(" %RH");
  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" C");
delay(1000);
}
uint16_t readHumidity() {
  uint8_t data[2];
  Wire.beginTransmission(SHT30_ADDRESS);
  Wire.write(0x00); // Command to read humidity
  Wire.endTransmission();
  Wire.requestFrom(SHT30_ADDRESS, 2);
  data[0] = Wire.read();
  data[1] = Wire.read();
  return (data[0]  256 + data[1])  0.00190734863; // Convert to %RH
}
uint16_t readTemperature() {
  uint8_t data[2];
  Wire.beginTransmission(SHT30_ADDRESS);
  Wire.write(0x00 | 0x8100); // Command to read temperature
  Wire.endTransmission();
  Wire.requestFrom(SHT30_ADDRESS, 2);
  data[0] = Wire.read();
  data[1] = Wire.read();
  return -45.0 + (data[0]  256 + data[1])  0.002116695; // Convert to C
}
```
Example 2: Python Script with Raspberry Pi
This example demonstrates how to use the SHT30-DIS sensor with a Raspberry Pi to read temperature and humidity values using Python.
```python
import smbus
import time
# I2C bus and address
bus = smbus.SMBus(1)
address = 0x40
def read_humidity():
    bus.write_byte(address, 0x00)  # Command to read humidity
    data = bus.read_i2c_block_data(address, 0x00, 2)
    return (data[0] << 8 | data[1])  0.00190734863
def read_temperature():
    bus.write_byte(address, 0x00 | 0x8100)  # Command to read temperature
    data = bus.read_i2c_block_data(address, 0x00, 2)
    return -45.0 + (data[0] << 8 | data[1])  0.002116695
while True:
    humidity = read_humidity()
    temperature = read_temperature()
    print(f"Humidity: {humidity:.2f}%RH")
    print(f"Temperature: {temperature:.2f}C")
    time.sleep(1)
```
Example 3: C Code for Microcontrollers
This example demonstrates how to use the SHT30-DIS sensor with a microcontroller (e.g., STM32) to read temperature and humidity values using C code.
```c
#include <i2c.h>
#define SHT30_ADDRESS 0x40
uint16_t readHumidity() {
  uint8_t data[2];
  i2c_start();
  i2c_send(SHT30_ADDRESS, 0x00); // Command to read humidity
  i2c_restart();
  i2c_recv(SHT30_ADDRESS, data, 2);
  i2c_stop();
  return (data[0] << 8 | data[1])  0.00190734863;
}
uint16_t readTemperature() {
  uint8_t data[2];
  i2c_start();
  i2c_send(SHT30_ADDRESS, 0x00 | 0x8100); // Command to read temperature
  i2c_restart();
  i2c_recv(SHT30_ADDRESS, data, 2);
  i2c_stop();
  return -45.0 + (data[0] << 8 | data[1])  0.002116695;
}
int main() {
  while (1) {
    uint16_t humidity = readHumidity();
    uint16_t temperature = readTemperature();
    printf("Humidity: %d.%02d%%RH
", humidity / 100, humidity % 100);
    printf("Temperature: %d.%02dC
", temperature / 100, temperature % 100);
    delay(1000);
  }
  return 0;
}
```
These examples demonstrate the basic usage of the SHT30-DIS sensor in various contexts. You can modify and expand upon these examples to fit your specific application requirements.