SHT85 Temperature and Humidity Sensor

View on Amazon
Overview
About SHT85 Temperature and Humidity Sensor
The SHT85, developed by Sensirion, is a high-accuracy digital temperature and humidity sensor designed for demanding measurement and test applications. It features a pin-type connector for easy integration and replacement and a unique package design that enhances thermal coupling while minimizing heat interference from the main board.
⚡ Key Features
- Superior Accuracy & Stability – Ensures high-precision temperature and humidity readings.
- Pin-Type Connector – Enables easy installation and replacement.
- IP67 Protection – A PTFE membrane shields the sensor from liquids and dust, making it ideal for harsh environments.
- Optimized for Industrial Use – Designed for climate monitoring, industrial testing, and scientific applications.
🔗 Looking for alternatives? Consider:
With its rugged design and precise measurements, the SHT85 is a top choice for industrial and environmental monitoring. 🚀
Get Your SHT85
💡 Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.
SHT85 Specifications
Complete technical specification details for SHT85 Temperature and Humidity Sensor
📊 Technical Parameters
SHT85 Pinout
The SHT85 uses standard I²C communication with 4 pins, offering top-tier industrial-grade performance.
Visual Pinout Diagram

Pin Types
Quick Tips
Standard I²C interface for easy integration,📡 Default I²C address is 0x44 or 0x45 (configurable)
Highest accuracy: ±0.1°C temp, ±1.5% humidity,⚡ Wide voltage range (2.15V-5.5V) for industrial use
Premium industrial-grade sensor for demanding applications
Pin Descriptions
| Pin Name | Type | Description | Notes |
|---|---|---|---|
1 SCL | Communication | I²C clock line | Serial Clock Line for I2C communication |
2 VDD | Power | Power supply input (2.15V to 5.5V) | Wide voltage range for industrial applications |
3 VSS | Power | Ground connection | Connect to ESP32 ground |
4 SDA | Communication | I²C data line | Serial Data Line for I2C communication |
Wiring SHT85 to ESP32
Connect the SHT85 using standard I²C interface for industrial-grade environmental monitoring.
Pin Connections
| SHT85 Pin | Connection | ESP32 Pin | Description |
|---|---|---|---|
1 VDD Required | 3.3V | Power supply (2.15V to 5.5V supported) | |
2 VSS Required | GND | Ground connection | |
3 SDA Required | GPIO21 | I²C data line (default SDA) | |
4 SCL Required | GPIO22 | I²C clock line (default SCL) |
GPIO21/22 are default I²C pins on ESP32
I²C address is 0x44 or 0x45 (check your module)
Add 10kΩ pull-up resistors on SDA/SCL if needed
Industrial-grade reliability for critical applications
SHT85 Troubleshooting
Common issues and solutions to help you get your sensor working
Common Issues
Issue: The SHT85 sensor fails to initialize when connected to an Arduino Uno, displaying the error message: Begin: failed.
Possible causes include incorrect wiring, improper power supply, or incompatible library versions.
Solution: Verify that the sensor's SCL and SDA lines are correctly connected to the Arduino's A5 and A4 pins, respectively. Ensure the sensor is powered with the appropriate voltage (3.3V or 5V, as per the sensor's specifications). Additionally, confirm that the latest version of the SHT sensor library is installed and compatible with your Arduino IDE.
Issue: The SHT85 sensor provides inconsistent temperature and humidity readings, or fails to communicate over the I2C bus.
Possible causes include improper pull-up resistor values on the I2C lines, leading to unreliable communication.
Solution: Ensure that 2.2kΩ pull-up resistors are connected between the SDA and SCL lines and the VCC to maintain proper I2C communication. Verify that the wiring matches the sensor's datasheet recommendations and that the Arduino's power supply is stable.
Issue: Difficulty arises when attempting to read data from two SHT85 sensors connected to the two I2C buses on an Arduino Mega 2560. The sensors return errors when the Arduino tries to read samples.
Possible causes include both sensors having the same I2C address, leading to address conflicts on the I2C bus.
Solution: Since the SHT85 sensors have fixed I2C addresses, consider using an I2C multiplexer to manage multiple sensors on the same bus. Alternatively, explore the possibility of using software I2C libraries to create additional I2C buses on different pins.
Issue: When interfacing the SHT85 sensor with a USB-8451 module using LabVIEW, communication errors occur, preventing successful data retrieval.
Possible causes include incorrect I2C command sequences or improper configuration of the USB-8451 module.
Solution: Review the SHT85 sensor's datasheet to understand the correct I2C command sequences required for data acquisition. Utilize LabVIEW's built-in examples for I2C communication to ensure proper configuration of the USB-8451 module. Adjusting the timing parameters and ensuring correct pull-up resistors on the I2C lines may also resolve communication issues.
Debugging Tips
Use the Serial Monitor to check for error messages and verify the sensor's output. Add debug prints in your code to track the sensor's state.
Use a multimeter to verify voltage levels and check for continuity in your connections. Ensure the power supply is stable and within the sensor's requirements.
Additional Resources
SHT85 Programming Examples
Ready-to-use code examples for different platforms and frameworks
#include <Wire.h>
#include "SHTSensor.h"
SHTSensor sht;
void setup() {
Wire.begin();
Serial.begin(9600);
if (sht.init()) {
Serial.println("SHT85 sensor initialized successfully.");
} else {
Serial.println("Failed to initialize SHT85 sensor.");
}
}
void loop() {
if (sht.readSample()) {
Serial.print("Temperature: ");
Serial.print(sht.getTemperature(), 2);
Serial.println(" °C");
Serial.print("Humidity: ");
Serial.print(sht.getHumidity(), 2);
Serial.println(" %");
} else {
Serial.println("Failed to read data from SHT85 sensor.");
}
delay(2000);
}#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/i2c.h"
#define I2C_MASTER_SCL_IO 22 /*!< GPIO number used for I2C master clock */
#define I2C_MASTER_SDA_IO 21 /*!< GPIO number used for I2C master data */
#define I2C_MASTER_NUM I2C_NUM_0 /*!< I2C master I2C port number */
#define I2C_MASTER_FREQ_HZ 100000 /*!< I2C master clock frequency */
#define SHT85_SENSOR_ADDR 0x44 /*!< SHT85 I2C address */
static esp_err_t i2c_master_init(void) {
i2c_config_t conf = {
.mode = I2C_MODE_MASTER,
.sda_io_num = I2C_MASTER_SDA_IO,
.scl_io_num = I2C_MASTER_SCL_IO,
.sda_pullup_en = GPIO_PULLUP_ENABLE,
.scl_pullup_en = GPIO_PULLUP_ENABLE,
.master.clk_speed = I2C_MASTER_FREQ_HZ,
};
esp_err_t err = i2c_param_config(I2C_MASTER_NUM, &conf);
if (err != ESP_OK) {
return err;
}
return i2c_driver_install(I2C_MASTER_NUM, conf.mode, 0, 0, 0);
}
void read_sht85_sensor() {
uint8_t data[6];
uint8_t cmd[] = {0x24, 0x00}; // Command to trigger measurement
i2c_master_write_to_device(I2C_MASTER_NUM, SHT85_SENSOR_ADDR, cmd, 2, pdMS_TO_TICKS(1000));
vTaskDelay(pdMS_TO_TICKS(15));
i2c_master_read_from_device(I2C_MASTER_NUM, SHT85_SENSOR_ADDR, data, 6, pdMS_TO_TICKS(1000));
uint16_t raw_temp = (data[0] << 8) | data[1];
uint16_t raw_humidity = (data[3] << 8) | data[4];
float temperature = -45 + 175 * ((float)raw_temp / 65535.0);
float humidity = 100 * ((float)raw_humidity / 65535.0);
printf("Temperature: %.2f °C, Humidity: %.2f %%\n", temperature, humidity);
}
void app_main() {
ESP_ERROR_CHECK(i2c_master_init());
while (1) {
read_sht85_sensor();
vTaskDelay(pdMS_TO_TICKS(2000));
}
}sensor:
- platform: sht3x
address: 0x44
temperature:
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
update_interval: 60splatformio.ini
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
sensirion/SHTSensor @ ^1.0.0
monitor_speed = 115200main.cpp
#include <Wire.h>
#include "SHTSensor.h"
SHTSensor sht(SHTSensor::SHT3X);
void setup() {
Serial.begin(115200);
Wire.begin();
if (sht.init()) {
Serial.println("SHT85 initialized successfully.");
} else {
Serial.println("SHT85 initialization failed.");
}
}
void loop() {
if (sht.readSample()) {
Serial.print("Temperature: ");
Serial.print(sht.getTemperature(), 2);
Serial.println(" °C");
Serial.print("Humidity: ");
Serial.print(sht.getHumidity(), 2);
Serial.println(" %");
} else {
Serial.println("Failed to read SHT85 sensor data.");
}
delay(2000);
}from machine import I2C, Pin
from time import sleep
# Initialize I2C communication
i2c = I2C(0, scl=Pin(22), sda=Pin(21))
# SHT85 I2C address
SHT85_ADDR = 0x44
# Function to trigger measurement and read data
def read_sht85():
i2c.writeto(SHT85_ADDR, b'\x24\x00') # Trigger measurement
sleep(0.015) # Wait for measurement
data = i2c.readfrom(SHT85_ADDR, 6) # Read 6 bytes of data
raw_temp = (data[0] << 8) | data[1]
raw_hum = (data[3] << 8) | data[4]
temperature = -45 + 175 * (raw_temp / 65535.0)
humidity = 100 * (raw_hum / 65535.0)
return temperature, humidity
while True:
try:
temp, hum = read_sht85()
print("Temperature: {:.2f} °C".format(temp))
print("Humidity: {:.2f} %".format(hum))
except Exception as e:
print("Error reading SHT85:", e)
sleep(2)Wrapping Up SHT85
The ESP32 SHT85 Temperature and Humidity Sensor is a powerful environment sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.
Best Practices
For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.
Safety First
Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.
Ready to Start Building?
Now that you have all the information you need, it's time to integrate the SHT85 into your ESP32 project and bring your ideas to life!
Explore Alternative Sensors
Looking for alternatives to the SHT85? Check out these similar sensors that might fit your project needs.

BMP180 Barometric Pressure Sensor
The BMP180 is a high-precision digital barometric pressure and temperature sensor, designed for applications such as weather monitoring,...

BME280 Temperature and Humidity Sensor
The BME280 is a compact digital sensor by Bosch Sensortec, designed for measuring temperature, humidity, and pressure with high accuracy and...

SHT21 / HTU21 / GY-21 / SI7021 Temperature and Humidity Sensor
The SHT21, HTU21, GY-21, and SI7021 sensors utilize I2C for reliable communication and provide calibrated, linearized temperature and...





