

The SHT45, manufactured by Adafruit (Part ID: 5665), is a high-precision digital humidity and temperature sensor. It is designed to provide accurate environmental measurements with low power consumption, making it ideal for applications such as environmental monitoring, HVAC systems, weather stations, and IoT devices. The sensor communicates via the I2C interface, ensuring easy integration with microcontrollers and development boards like the Arduino UNO.








The SHT45 offers excellent performance and reliability. Below are its key technical details:
| Parameter | Value |
|---|---|
| Supply Voltage | 2.4V to 5.5V |
| Average Current | 0.4 µA (at 1 Hz measurement) |
| Humidity Accuracy | ±1.5% RH (typical) |
| Temperature Accuracy | ±0.1°C (typical) |
| Communication Interface | I2C |
| Operating Temperature | -40°C to +125°C |
| Humidity Range | 0% to 100% RH |
| Dimensions | 10mm x 10mm x 2mm |
The SHT45 sensor has four pins, as described in the table below:
| Pin Name | Pin Number | Description |
|---|---|---|
| VCC | 1 | Power supply (2.4V to 5.5V) |
| GND | 2 | Ground |
| SDA | 3 | I2C data line |
| SCL | 4 | I2C clock line |
The SHT45 is straightforward to use in a circuit, especially with microcontrollers like the Arduino UNO. Below are the steps to integrate and use the sensor:
Below is an example Arduino sketch to read temperature and humidity data from the SHT45 using the Adafruit SHT4x library:
#include <Wire.h>
#include "Adafruit_SHT4x.h"
// Create an instance of the SHT4x sensor
Adafruit_SHT4x sht4 = Adafruit_SHT4x();
void setup() {
Serial.begin(115200);
while (!Serial) delay(10); // Wait for Serial Monitor to open
Serial.println("Adafruit SHT45 Test");
if (!sht4.begin()) {
Serial.println("Failed to find SHT4x sensor!");
while (1) delay(10); // Halt if sensor is not found
}
Serial.println("SHT4x sensor found!");
// Set precision mode (optional)
sht4.setPrecision(SHT4X_HIGH_PRECISION);
Serial.println("Set to high precision mode.");
}
void loop() {
sensors_event_t humidity, temp;
// Read temperature and humidity
if (!sht4.getEvent(&humidity, &temp)) {
Serial.println("Failed to read data from sensor!");
return;
}
// Print temperature and humidity to Serial Monitor
Serial.print("Temperature: ");
Serial.print(temp.temperature);
Serial.println(" °C");
Serial.print("Humidity: ");
Serial.print(humidity.relative_humidity);
Serial.println(" %RH");
delay(2000); // Wait 2 seconds before next reading
}
Sensor Not Detected:
Incorrect Readings:
Code Compilation Errors:
Q: Can the SHT45 operate at 5V logic levels?
A: Yes, the SHT45 supports a supply voltage range of 2.4V to 5.5V, making it compatible with both 3.3V and 5V logic systems.
Q: What is the typical response time of the sensor?
A: The SHT45 has a response time of approximately 8 seconds for humidity and 2 seconds for temperature under normal conditions.
Q: Is the SHT45 suitable for outdoor use?
A: While the SHT45 is highly accurate, it is recommended to use a protective enclosure to shield it from direct exposure to water, dust, or extreme environmental conditions.
By following this documentation, users can effectively integrate and utilize the SHT45 sensor in their projects.