

The StrawberryLinux SHT25 Sensor Module is a high-precision digital temperature and humidity sensor designed for environmental monitoring applications. It features a compact design and communicates via the I2C protocol, making it easy to integrate into a wide range of projects. The module is based on the SHT25 sensor, which offers excellent accuracy and reliability for temperature and humidity measurements.








The following table outlines the key technical specifications of the StrawberryLinux SHT25 Sensor Module:
| Parameter | Specification |
|---|---|
| Supply Voltage | 3.0V to 5.5V |
| Communication Protocol | I2C |
| Temperature Range | -40°C to +125°C |
| Temperature Accuracy | ±0.2°C (typical) |
| Humidity Range | 0% RH to 100% RH |
| Humidity Accuracy | ±1.8% RH (typical) |
| Power Consumption | 3 µW (at 1 measurement/second) |
| Dimensions | 15mm x 20mm |
The module has a 4-pin interface for easy connection. The pinout is as follows:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.0V to 5.5V) |
| 2 | GND | Ground |
| 3 | SDA | I2C data line |
| 4 | SCL | I2C clock line |
VCC pin to a 3.3V or 5V power source and the GND pin to ground.SDA and SCL pins to the corresponding I2C pins on your microcontroller (e.g., Arduino UNO: A4 for SDA and A5 for SCL).0x40. Ensure no other devices on the I2C bus conflict with this address.Below is an example Arduino sketch to read temperature and humidity data from the SHT25 sensor:
#include <Wire.h>
// SHT25 I2C address
#define SHT25_ADDRESS 0x40
// Command codes for temperature and humidity measurements
#define CMD_MEASURE_TEMP 0xE3
#define CMD_MEASURE_HUM 0xE5
void setup() {
Wire.begin(); // Initialize I2C communication
Serial.begin(9600); // Initialize serial communication for debugging
Serial.println("SHT25 Sensor Module Test");
}
void loop() {
float temperature = readTemperature();
float humidity = readHumidity();
// Print the results to the Serial Monitor
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.println(" %RH");
delay(1000); // Wait 1 second before the next measurement
}
float readTemperature() {
Wire.beginTransmission(SHT25_ADDRESS);
Wire.write(CMD_MEASURE_TEMP); // Send temperature measurement command
Wire.endTransmission();
delay(85); // Wait for the measurement to complete
Wire.requestFrom(SHT25_ADDRESS, 2);
if (Wire.available() == 2) {
uint16_t rawData = (Wire.read() << 8) | Wire.read();
return -46.85 + 175.72 * (rawData / 65536.0); // Convert to Celsius
}
return NAN; // Return NaN if data is unavailable
}
float readHumidity() {
Wire.beginTransmission(SHT25_ADDRESS);
Wire.write(CMD_MEASURE_HUM); // Send humidity measurement command
Wire.endTransmission();
delay(29); // Wait for the measurement to complete
Wire.requestFrom(SHT25_ADDRESS, 2);
if (Wire.available() == 2) {
uint16_t rawData = (Wire.read() << 8) | Wire.read();
return -6.0 + 125.0 * (rawData / 65536.0); // Convert to %RH
}
return NAN; // Return NaN if data is unavailable
}
No Data from the Sensor
I2C Communication Failure
0x40) and ensure pull-up resistors are present on the SDA and SCL lines.Inaccurate Readings
Arduino Code Not Working
Wire library is included in your sketch.Q: Can the SHT25 Sensor Module operate at 5V?
A: Yes, the module supports a supply voltage range of 3.0V to 5.5V.
Q: What is the typical response time for measurements?
A: The typical response time is 8 seconds for humidity and less than 1 second for temperature.
Q: Can I use this module with a Raspberry Pi?
A: Yes, the module can be used with any microcontroller or SBC (Single Board Computer) that supports I2C communication.
Q: Is the sensor factory-calibrated?
A: Yes, the SHT25 sensor is factory-calibrated for temperature and humidity measurements.