Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Adafruit SHT40: Examples, Pinouts, and Specs

Image of Adafruit SHT40
Cirkit Designer LogoDesign with Adafruit SHT40 in Cirkit Designer

Introduction

The Adafruit SHT40 is a high-precision temperature and humidity sensor breakout board that utilizes the Sensirion SHT40 sensor. This sensor is known for its reliability and accuracy, making it an ideal choice for environmental monitoring in a variety of applications including weather stations, home automation, and HVAC systems. Its low power consumption and wide operating voltage range allow it to be easily integrated into battery-powered and portable devices.

Explore Projects Built with Adafruit SHT40

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Raspberry Pi Pico-Based Temperature and Humidity Monitoring System
Image of rpi pico with aht20: A project utilizing Adafruit SHT40 in a practical application
This circuit connects an Adafruit AHT20 Temperature and Humidity Sensor to a Raspberry Pi Pico microcontroller. The AHT20 sensor communicates with the Raspberry Pi Pico via I2C protocol, using SCL and SDA lines for clock and data respectively. The sensor is powered by the Pico, with connections for VCC and GND to provide the necessary power supply.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO with HTU21D-F Sensor for Temperature and Humidity Monitoring
Image of Interfacing HTU21D Temperature and Humidity Sensor with Arduino UNO: A project utilizing Adafruit SHT40 in a practical application
This circuit connects an Arduino UNO microcontroller to an Adafruit HTU21D-F Temperature & Humidity Sensor. The Arduino is programmed to read temperature and humidity data from the sensor and output the readings to the Serial Monitor at half-second intervals. The sensor is powered by the Arduino's 5V output and communicates with the microcontroller via the I2C protocol using the SCL and SDA lines.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano-Based Air Quality Monitor with OLED Display and Alert Buzzer
Image of Luftkvalitetsmätare: A project utilizing Adafruit SHT40 in a practical application
This circuit features an Arduino Nano microcontroller interfaced with an Adafruit SGP30 air quality sensor, an Adafruit SHTC3 temperature and humidity sensor, and a 0.96" OLED display for real-time environmental monitoring. The sensors communicate with the Arduino via I2C, with the SGP30 and SHTC3 sensors providing air quality readings (CO2 and TVOC) and temperature/humidity data, respectively, which are then displayed on the OLED. Additionally, a buzzer is connected to the Arduino and is programmed to activate when CO2 levels exceed a certain threshold, serving as an alert system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO WiFi-Based Environmental Monitoring System with I2C LCD Display
Image of LAB 4 CS 362: A project utilizing Adafruit SHT40 in a practical application
This circuit uses an Arduino UNO R4 WiFi to read data from a DHT22 temperature and humidity sensor, an LM35 temperature sensor, and a photocell (LDR). The data is then displayed on a 16x2 I2C LCD screen, with the photocell data also being printed to the serial monitor.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Adafruit SHT40

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of rpi pico with aht20: A project utilizing Adafruit SHT40 in a practical application
Raspberry Pi Pico-Based Temperature and Humidity Monitoring System
This circuit connects an Adafruit AHT20 Temperature and Humidity Sensor to a Raspberry Pi Pico microcontroller. The AHT20 sensor communicates with the Raspberry Pi Pico via I2C protocol, using SCL and SDA lines for clock and data respectively. The sensor is powered by the Pico, with connections for VCC and GND to provide the necessary power supply.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Interfacing HTU21D Temperature and Humidity Sensor with Arduino UNO: A project utilizing Adafruit SHT40 in a practical application
Arduino UNO with HTU21D-F Sensor for Temperature and Humidity Monitoring
This circuit connects an Arduino UNO microcontroller to an Adafruit HTU21D-F Temperature & Humidity Sensor. The Arduino is programmed to read temperature and humidity data from the sensor and output the readings to the Serial Monitor at half-second intervals. The sensor is powered by the Arduino's 5V output and communicates with the microcontroller via the I2C protocol using the SCL and SDA lines.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Luftkvalitetsmätare: A project utilizing Adafruit SHT40 in a practical application
Arduino Nano-Based Air Quality Monitor with OLED Display and Alert Buzzer
This circuit features an Arduino Nano microcontroller interfaced with an Adafruit SGP30 air quality sensor, an Adafruit SHTC3 temperature and humidity sensor, and a 0.96" OLED display for real-time environmental monitoring. The sensors communicate with the Arduino via I2C, with the SGP30 and SHTC3 sensors providing air quality readings (CO2 and TVOC) and temperature/humidity data, respectively, which are then displayed on the OLED. Additionally, a buzzer is connected to the Arduino and is programmed to activate when CO2 levels exceed a certain threshold, serving as an alert system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of LAB 4 CS 362: A project utilizing Adafruit SHT40 in a practical application
Arduino UNO WiFi-Based Environmental Monitoring System with I2C LCD Display
This circuit uses an Arduino UNO R4 WiFi to read data from a DHT22 temperature and humidity sensor, an LM35 temperature sensor, and a photocell (LDR). The data is then displayed on a 16x2 I2C LCD screen, with the photocell data also being printed to the serial monitor.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Key Technical Details

  • Temperature Measurement Range: -40°C to +125°C
  • Humidity Measurement Range: 0 to 100% RH
  • Temperature Accuracy: ±0.2°C (typical)
  • Humidity Accuracy: ±1.8% RH (typical)
  • Operating Voltage Range: 2.4V to 5.5V
  • Interface: I2C
  • I2C Address: 0x44 (default)
  • Power Consumption: Low power consumption, suitable for battery-powered applications

Pin Configuration and Descriptions

Pin Number Name Description
1 VDD Power supply (2.4V to 5.5V)
2 GND Ground connection
3 SCL I2C clock line
4 SDA I2C data line
5 ADDR I2C address selection (connect to GND or VDD)
6 NC No connection (do not connect)

Usage Instructions

Integration into a Circuit

To use the Adafruit SHT40 sensor in a circuit, follow these steps:

  1. Connect the VDD pin to a power supply within the 2.4V to 5.5V range.
  2. Connect the GND pin to the ground of your power supply.
  3. Connect the SCL and SDA pins to the I2C clock and data lines on your microcontroller, respectively.
  4. If necessary, set the I2C address by connecting the ADDR pin to GND or VDD. The default address is 0x44.

Best Practices

  • Ensure that the power supply is stable and within the specified voltage range.
  • Use pull-up resistors on the I2C lines, typically 10kΩ, unless they are provided by the microcontroller board.
  • Avoid placing the sensor in direct sunlight or near heat sources to prevent inaccurate readings.
  • For outdoor applications, protect the sensor from direct exposure to water or high humidity conditions.

Example Code for Arduino UNO

#include <Wire.h>
#include <Adafruit_SHT40.h>

Adafruit_SHT40 sht40;

void setup() {
  Serial.begin(9600);
  if (!sht40.begin()) {
    Serial.println("Couldn't find SHT40");
    while (1) delay(1);
  }
}

void loop() {
  sensors_event_t humidity, temp;
  sht40.getEvent(&humidity, &temp); // Get new data

  Serial.print("Temperature: ");
  Serial.print(temp.temperature);
  Serial.println(" degrees C");

  Serial.print("Humidity: ");
  Serial.print(humidity.relative_humidity);
  Serial.println("% rH");

  delay(1000);
}

Ensure that the Adafruit SHT40 library is installed in your Arduino IDE before uploading this code to your Arduino UNO.

Troubleshooting and FAQs

Common Issues

  • Sensor not detected: Check the wiring, ensure that the I2C address is correct, and that the power supply is within the specified range.
  • Inaccurate readings: Verify that the sensor is not exposed to heat sources or direct sunlight and that it's protected from water if used outdoors.

FAQs

Q: Can the SHT40 sensor be used in high humidity environments? A: Yes, the SHT40 can operate in 0 to 100% RH range, but it should not be submerged in water or exposed to condensing environments.

Q: What is the power consumption of the SHT40 sensor? A: The SHT40 has low power consumption, but the exact value depends on the measurement frequency and operating conditions.

Q: How do I calibrate the sensor? A: The SHT40 is factory-calibrated. However, for critical applications, you may perform additional calibration using known humidity and temperature references.

For further assistance, consult the Adafruit SHT40 datasheet and the Sensirion SHT40 sensor technical documentation.