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

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

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

Introduction

The SHT40 Breakout (Adafruit Part ID: 4885) is a high-accuracy temperature and humidity sensor module designed for precision environmental monitoring. Manufactured by Adafruit, this breakout board integrates the SHT40 sensor from Sensirion, which is part of their 4th-generation sensor family. The module is compact, reliable, and easy to use, making it ideal for applications such as:

  • Environmental monitoring systems
  • HVAC (Heating, Ventilation, and Air Conditioning) systems
  • Weather stations
  • IoT (Internet of Things) devices
  • Industrial and home automation

The breakout board includes all necessary circuitry for seamless integration with microcontrollers via the I2C communication protocol.


Explore Projects Built with SHT40 Breakout

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO WiFi with Heart Pulse and Temperature Monitoring
Image of BioTrackers: A project utilizing SHT40 Breakout in a practical application
This circuit features an Arduino UNO R4 WiFi microcontroller connected to a Heart Pulse Sensor and an SHT1x-Breakout sensor. The Arduino is configured to read heart pulse signals from the Heart Pulse Sensor on analog pin A0 and temperature/humidity data from the SHT1x-Breakout sensor via the I2C interface on pins A4 (DATA) and A5 (SCK). Both sensors are powered by the Arduino's 5V output, and their ground pins are connected to the Arduino's ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano-Controlled LED Display with RTC and Humidity Sensing
Image of Alarm Clock: A project utilizing SHT40 Breakout in a practical application
This circuit features a Nano 3.0 ATmega328P microcontroller connected to an LED dot display, a real-time clock (RTC DS3231), and a humidity and temperature sensor (SHT21). The microcontroller communicates with the RTC and SHT21 via I2C (using A4 and A5 as SDA and SCL lines, respectively), and it controls the LED display through SPI-like signals (using D10, D11, and D12 for DIN, CS, and CLK). The circuit is designed to display time and environmental data on the LED display, with all components sharing a common power supply and ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Temperature Monitoring System with OLED Display and LoRa Communication
Image of transfer: A project utilizing SHT40 Breakout in a practical application
This circuit features an ESP32 microcontroller connected to a 0.96" OLED display, a LoRa RA02 module for long-range communication, and an Adafruit MAX31865 RTD Sensor Breakout for temperature measurements using a PT100 RTD sensor. Three pushbuttons are interfaced with the ESP32 for user input. The circuit is designed for temperature monitoring with a display output and remote data transmission capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Environmental and Distance Sensing System
Image of Low Cost Water Level Sensor: A project utilizing SHT40 Breakout in a practical application
This circuit features an ESP32 microcontroller connected to a DHT11 humidity and temperature sensor, an HC-SR04 ultrasonic sensor, and an XM125 radar breakout module. The ESP32 uses its GPIO pins to interface with the DHT11 sensor for environmental data, control and receive signals from the HC-SR04 for distance measurements, and communicate with the XM125 via I2C and control lines for radar-based detection. The circuit is likely designed for a multi-sensor monitoring or detection system, integrating environmental sensing, distance measurement, and radar signal processing.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with SHT40 Breakout

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 BioTrackers: A project utilizing SHT40 Breakout in a practical application
Arduino UNO WiFi with Heart Pulse and Temperature Monitoring
This circuit features an Arduino UNO R4 WiFi microcontroller connected to a Heart Pulse Sensor and an SHT1x-Breakout sensor. The Arduino is configured to read heart pulse signals from the Heart Pulse Sensor on analog pin A0 and temperature/humidity data from the SHT1x-Breakout sensor via the I2C interface on pins A4 (DATA) and A5 (SCK). Both sensors are powered by the Arduino's 5V output, and their ground pins are connected to the Arduino's ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Alarm Clock: A project utilizing SHT40 Breakout in a practical application
Arduino Nano-Controlled LED Display with RTC and Humidity Sensing
This circuit features a Nano 3.0 ATmega328P microcontroller connected to an LED dot display, a real-time clock (RTC DS3231), and a humidity and temperature sensor (SHT21). The microcontroller communicates with the RTC and SHT21 via I2C (using A4 and A5 as SDA and SCL lines, respectively), and it controls the LED display through SPI-like signals (using D10, D11, and D12 for DIN, CS, and CLK). The circuit is designed to display time and environmental data on the LED display, with all components sharing a common power supply and ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of transfer: A project utilizing SHT40 Breakout in a practical application
ESP32-Based Temperature Monitoring System with OLED Display and LoRa Communication
This circuit features an ESP32 microcontroller connected to a 0.96" OLED display, a LoRa RA02 module for long-range communication, and an Adafruit MAX31865 RTD Sensor Breakout for temperature measurements using a PT100 RTD sensor. Three pushbuttons are interfaced with the ESP32 for user input. The circuit is designed for temperature monitoring with a display output and remote data transmission capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Low Cost Water Level Sensor: A project utilizing SHT40 Breakout in a practical application
ESP32-Based Environmental and Distance Sensing System
This circuit features an ESP32 microcontroller connected to a DHT11 humidity and temperature sensor, an HC-SR04 ultrasonic sensor, and an XM125 radar breakout module. The ESP32 uses its GPIO pins to interface with the DHT11 sensor for environmental data, control and receive signals from the HC-SR04 for distance measurements, and communicate with the XM125 via I2C and control lines for radar-based detection. The circuit is likely designed for a multi-sensor monitoring or detection system, integrating environmental sensing, distance measurement, and radar signal processing.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Key Specifications

Parameter Value
Sensor Type Temperature and Humidity
Temperature Range -40°C to +125°C
Temperature Accuracy ±0.1°C (typical)
Humidity Range 0% to 100% RH
Humidity Accuracy ±1.8% RH (typical)
Supply Voltage 2.4V to 5.5V
Communication Protocol I2C
I2C Address (Default) 0x44
Current Consumption 0.4 µA (idle), 900 µA (measurement mode)
Dimensions 16mm x 10mm x 2mm

Pin Configuration

The SHT40 Breakout board has four pins, as described in the table below:

Pin Name Description Notes
VIN Power Supply Input Accepts 2.4V to 5.5V
GND Ground Connect to system ground
SCL I2C Clock Line Pull-up resistor required
SDA I2C Data Line Pull-up resistor required

Usage Instructions

Connecting the SHT40 Breakout

  1. Power Supply: Connect the VIN pin to a 3.3V or 5V power source and the GND pin to ground.
  2. I2C Communication: Connect the SCL and SDA pins to the corresponding I2C pins on your microcontroller. For example:
    • On an Arduino UNO, connect SCL to A5 and SDA to A4.
  3. Pull-Up Resistors: Ensure that the I2C lines (SCL and SDA) have pull-up resistors (typically 4.7kΩ). Many breakout boards include these resistors by default.

Example Arduino Code

Below is an example of how to use the SHT40 Breakout with an Arduino UNO. This code reads temperature and humidity data and prints it to the Serial Monitor.

#include <Wire.h>
#include "Adafruit_SHT4x.h"

// Create an instance of the SHT40 sensor
Adafruit_SHT4x sht40;

void setup() {
  Serial.begin(115200); // Initialize Serial Monitor
  while (!Serial) delay(10); // Wait for Serial Monitor to open

  Serial.println("SHT40 Breakout Example");

  // Initialize the sensor
  if (!sht40.begin()) {
    Serial.println("Failed to find SHT40 sensor!");
    while (1) delay(10); // Halt if sensor is not detected
  }
  Serial.println("SHT40 sensor initialized.");
}

void loop() {
  sensors_event_t humidity, temp;

  // Perform a measurement
  if (!sht40.getEvent(&humidity, &temp)) {
    Serial.println("Failed to read data from SHT40!");
    return;
  }

  // Print temperature and humidity readings
  Serial.print("Temperature: ");
  Serial.print(temp.temperature);
  Serial.println(" °C");

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

  delay(2000); // Wait 2 seconds before the next reading
}

Best Practices

  • Power Supply: Ensure the power supply voltage is within the specified range (2.4V to 5.5V).
  • I2C Address: The default I2C address is 0x44. If you have multiple SHT40 sensors on the same bus, ensure they have unique addresses.
  • Environmental Factors: Avoid exposing the sensor to extreme conditions (e.g., condensation or dust) to maintain accuracy and longevity.

Troubleshooting and FAQs

Common Issues and Solutions

Issue Possible Cause Solution
Sensor not detected on I2C bus Incorrect wiring or I2C address Verify connections and address
Incorrect temperature/humidity Sensor exposed to contaminants Clean sensor or use a protective cover
No data output Missing pull-up resistors on I2C lines Add 4.7kΩ pull-up resistors
Fluctuating readings Electrical noise or unstable power Use decoupling capacitors on VIN/GND

FAQs

  1. Can I use the SHT40 Breakout with a 3.3V microcontroller?

    • Yes, the breakout board is compatible with both 3.3V and 5V systems.
  2. What is the default I2C address of the SHT40?

    • The default I2C address is 0x44.
  3. Do I need to calibrate the sensor?

    • No, the SHT40 is factory-calibrated and does not require additional calibration.
  4. Can I use the SHT40 in outdoor environments?

    • While the sensor is accurate, it is not waterproof. Use a protective enclosure for outdoor applications.

By following this documentation, you can effectively integrate the SHT40 Breakout into your projects for reliable temperature and humidity measurements.