Grove - Temperature&Humidity Sensor (High-Accuracy &Mini) v1.0

Introduction

3.3V 5.0V I2C

This is a multifunctional sensor that gives you temperature and relative humidity information at the same time. It utilizes a TH02 sensor that can meet measurement needs of general purposes. It provides reliable readings when environment humidity condition in between 0-80% RH, and temperature condition in between 0-70°C, covering needs in most home and daily applications that don’t contain extreme conditions.

Specifications

  • Wide operating voltage range
    • (3.3V ~ 5V)
  • Low Power Consumption
    • 350 µA during RH conversion
  • 0 to 100% RH operating range
  • Measuring Range:
    • Humidity: 0% - 80% RH
    • Temperature: 0 ~ 70 °C
  • Accuracy:
    • Humidity: ±4.5% RH
    • Temperature: ±0.5°C
  • I2C host interface
  • Excellent long term stability

Tip

More details about Grove modules please refer to Grove System

Platforms Supported

Applications

  • Industrial HVAC/R
  • Thermostats/humidistats
  • Micro-environments/data centers

Demonstration

This demo is going to show you how to read temperature and humidity information from this Grove - Temperature&Humidity Sensor (High-Accuracy &Mini) Sensor.

The Temperature and Humidity sensor is connecting to analog port I2C of Grove - Base Shield.

/*
 * Demo name  ?: TH02_dev demo
 * Usage      ?: DIGITAL I2C HUMIDITY AND TEMPERATURE SENSOR
 * Author     ?: Oliver Wang from Seeed Studio
 * Version    ?: V0.1
 */

#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"

void setup()
{
    Serial.begin(9600);        // start serial for output

    Serial.println("****TH02_dev demo by seeed studio****\n");
    /* Power up,delay 150ms,until voltage is stable */
    delay(150);
    /* Reset HP20x_dev */
    TH02.begin();
    delay(100);

    /* Determine TH02_dev is available or not */
    Serial.println("TH02_dev is available.\n");
}


void loop()
{
    float temper = TH02.ReadTemperature();
    Serial.println("Temperature: ");
    Serial.print(temper);
    Serial.println("C\r\n");

    float humidity = TH02.ReadHumidity();
    Serial.println("Humidity: ");
    Serial.print(humidity);
    Serial.println("%\r\n");
    delay(1000);
}

Upload it into your Arduino board and open the serial monitor to observe the temperature and relative humidity information of the environment.

Resources


ArduinoWioBeagleBoneRaspberry PiLinkIt ONE

Caution

The platforms mentioned above as supported is/are an indication of the module's hardware or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:

  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.

An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.

Happy hacking