The SHT41 is a high-precision sensor manufactured by SIMPLE ROBOT. It is designed to measure both temperature and humidity with high accuracy and reliability. This sensor is widely used in applications such as HVAC systems, weather stations, and industrial monitoring due to its robust performance and ease of integration.
Parameter | Value |
---|---|
Supply Voltage | 2.4V to 5.5V |
Average Current | 0.4 µA (at 1 measurement/s) |
Temperature Range | -40°C to 125°C |
Temperature Accuracy | ±0.2°C |
Humidity Range | 0% to 100% RH |
Humidity Accuracy | ±1.5% RH |
Communication | I2C |
I2C Address | 0x44 |
Pin No. | Pin Name | Description |
---|---|---|
1 | VDD | Power Supply (2.4V to 5.5V) |
2 | GND | Ground |
3 | SDA | I2C Data Line |
4 | SCL | I2C Clock Line |
5 | NC | Not Connected |
6 | NC | Not Connected |
Below is a sample code to interface the SHT41 sensor with an Arduino UNO:
#include <Wire.h>
#include "SHT41.h" // Include the SHT41 library
SHT41 sht41;
void setup() {
Serial.begin(9600);
Wire.begin();
if (!sht41.begin()) {
Serial.println("Failed to initialize SHT41 sensor!");
while (1);
}
Serial.println("SHT41 sensor initialized successfully.");
}
void loop() {
float temperature = sht41.readTemperature();
float humidity = sht41.readHumidity();
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.println(" %RH");
delay(2000); // Wait for 2 seconds before the next reading
}
By following this documentation, users should be able to effectively integrate and utilize the SHT41 Temperature Humidity Sensor in their projects.