Stufin
Home Quick Cart Profile

Witty Fox - SI7021 Humidity Temperature Sensor Breakout Board

Buy Now on Stufin

Temperature measurement range

-40C to 125C (3C accuracy)

Relative humidity measurement range

0% to 80% RH (5% accuracy)

  • Low Power Consumption:

Operating current

150 A (average)

Sleep current

< 1 A

Power supply

1.9V to 3.6V

  • I2C Communication:

Supports I2C protocol for easy integration with microcontrollers and other devices

Address

0x40 (7-bit) or 0x80 (8-bit)

  • Compact Design:

Breakout board dimensions

18 mm x 18 mm (0.7 in x 0.7 in)

Mounting holes

2 x 3.2 mm (0.13 in) diameter

  • Reliability and Durability:

Operating temperature range

-40C to 85C

Storage temperature range

-50C to 125C

  • Easy Integration:

Pin headers for easy connection to breadboards or PCBs

Includes pull-up resistors for I2C communication

  • Multi-Platform Compatibility:

Compatible with various microcontrollers, including Arduino, Raspberry Pi, and ESP32/ESP8266

Additional Resources

Datasheet

SI7021 Humidity and Temperature Sensor

Breakout board schematics and layout files

Example code libraries for popular microcontrollers and platforms

Ordering Information

Part number

WF-SI7021-BB

Package contents

1 x Witty Fox SI7021 Humidity Temperature Sensor Breakout Board

Warranty and Support

1-year limited warranty

Dedicated technical support team for assistance with integration and troubleshooting

Pin Configuration

  • Witty Fox - SI7021 Humidity Temperature Sensor Breakout Board Pinout Guide
  • The Witty Fox SI7021 Humidity Temperature Sensor Breakout Board provides a convenient way to measure relative humidity and temperature. This guide explains the function of each pin on the breakout board, helping you to easily integrate it into your IoT projects.
  • Pinout Structure:
  • The breakout board has a total of 6 pins, arranged in two rows of 3 pins each. The pins are labeled as follows:
  • Row 1:
  • 1. VCC: Power supply pin (typically 3.3V or 5V)
  • Connect to the positive power rail of your microcontroller or power source.
  • 2. GND: Ground pin
  • Connect to the negative power rail of your microcontroller or power source.
  • 3. SCL: I2C Clock pin
  • Connect to the I2C clock pin of your microcontroller (typically labeled as SCL or SCK).
  • Row 2:
  • 1. SDA: I2C Data pin
  • Connect to the I2C data pin of your microcontroller (typically labeled as SDA or MOSI).
  • 2. ADDR: I2C Address Select pin (optional)
  • This pin is used to select the I2C address of the SI7021 sensor. You can connect it to VCC, GND, or leave it floating to select one of three possible I2C addresses (0x40, 0x41, or 0x42).
  • 3. NC: Not Connected pin
  • This pin is not connected to any internal component and can be left unconnected.
  • Connection Guidelines:
  • When connecting the breakout board to your microcontroller, ensure that the power supply voltage (VCC) matches the recommended operating voltage of your microcontroller.
  • Use appropriate pull-up resistors on the I2C bus (SCL and SDA lines) to ensure reliable communication.
  • If using the ADDR pin, connect it to VCC, GND, or leave it floating according to your specific I2C address requirements.
  • Make sure to connect the GND pin to a common ground point in your circuit to prevent noise and ensure proper operation.
  • By following these guidelines, you can successfully connect the Witty Fox SI7021 Humidity Temperature Sensor Breakout Board to your microcontroller and start measuring relative humidity and temperature in your IoT projects.

Code Examples

Witty Fox - SI7021 Humidity Temperature Sensor Breakout Board Documentation
Overview
The Witty Fox - SI7021 Humidity Temperature Sensor Breakout Board is a compact and easy-to-use board designed to measure relative humidity (RH) and temperature. The board is based on the popular SI7021 sensor, which provides high accuracy and reliability in a wide range of environmental conditions.
Technical Specifications
Sensor: SI7021
 Humidity Measurement Range: 0-80% RH
 Temperature Measurement Range: -40C to 125C
 Accuracy:
	+ Humidity: 3% RH
	+ Temperature: 0.5C
 Power Supply: 3.3V or 5V
 Communication Protocol: I2C
Pinout
VCC: Power supply (3.3V or 5V)
 GND: Ground
 SCL: I2C Clock
 SDA: I2C Data
Example Code
### Example 1: Basic Temperature and Humidity Reading using Arduino
This example demonstrates how to read temperature and humidity data from the SI7021 sensor using an Arduino board.
```cpp
#include <Wire.h>
#define SI7021_ADDRESS 0x40
void setup() {
  Serial.begin(9600);
  Wire.begin();
}
void loop() {
  int humidity = readHumidity();
  int temperature = readTemperature();
Serial.print("Humidity: ");
  Serial.print(humidity);
  Serial.println(" %RH");
Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" C");
delay(1000);
}
int readHumidity() {
  Wire.beginTransmission(SI7021_ADDRESS);
  Wire.write(0xE5);
  Wire.endTransmission();
  Wire.requestFrom(SI7021_ADDRESS, 2);
  uint8_t humidityMsB = Wire.read();
  uint8_t humidityLsB = Wire.read();
  int humidity = ((humidityMsB << 8) | humidityLsB)  0.04 - 4.0;
  return humidity;
}
int readTemperature() {
  Wire.beginTransmission(SI7021_ADDRESS);
  Wire.write(0xE0);
  Wire.endTransmission();
  Wire.requestFrom(SI7021_ADDRESS, 2);
  uint8_t tempMsB = Wire.read();
  uint8_t tempLsB = Wire.read();
  int temperature = ((tempMsB << 8) | tempLsB)  0.01 - 40.0;
  return temperature;
}
```
### Example 2: Raspberry Pi Python Code for Reading Temperature and Humidity
This example demonstrates how to read temperature and humidity data from the SI7021 sensor using a Raspberry Pi and Python.
```python
import smbus
import time
# Define the I2C bus and SI7021 address
bus = smbus.SMBus(1)
address = 0x40
def read_humidity():
    bus.write_byte(address, 0xE5)
    data = bus.read_i2c_block_data(address, 0x00, 2)
    humidity = (data[0] << 8) | data[1]
    humidity = (humidity  0.04) - 4.0
    return humidity
def read_temperature():
    bus.write_byte(address, 0xE0)
    data = bus.read_i2c_block_data(address, 0x00, 2)
    temperature = (data[0] << 8) | data[1]
    temperature = (temperature  0.01) - 40.0
    return temperature
while True:
    humidity = read_humidity()
    temperature = read_temperature()
print("Humidity: {:.1f} %RH".format(humidity))
    print("Temperature: {:.1f} C".format(temperature))
time.sleep(1)
```
Note: Make sure to install the `smbus` library on your Raspberry Pi using `sudo apt-get install python-smbus` before running the code.
These examples demonstrate the basic usage of the Witty Fox - SI7021 Humidity Temperature Sensor Breakout Board. You can modify the code to suit your specific application requirements.