Skip to main content

Temperature and Humidity Sensor

The HDC1080 is a digital humidity and temperature sensor. The sensor has high accuracy and very low power consumption, making it ideal for the senseBox. The sensors are calibrated at the factory and can be used instantly.

Temperature and Humidity Sensor

Temperature and Humidity Sensor

Technical Information

  • "Plug-in-and-Go" senseBox compatible
  • Relative humidity (RH) operating range: 0% to 100%
  • 14-bit measurement resolution
  • Relative humidity accuracy: ±4%
  • Temperature accuracy: ±0.2°C
  • 2100 nA power supply
  • Operating voltage: 2.7 V to 5.5 V
  • I2C interface

Connection

i2c port

The component is connected to the I2C port.

Programming (Arduino)

Software Library

To program the sensor in Arduino, you need to install the software library Adafruit HDC1000 Library.

Code

This code outputs the temperature and relative humidity in the Serial Monitor.

#include <Adafruit_HDC1000.h> // http://librarymanager/All#Adafruit_HDC1000_Library

Adafruit_HDC1000 hdc = Adafruit_HDC1000();

void setup(){
Serial.begin(9600);
hdc.begin();
}

void loop(){
Serial.print("Temperature: ");
Serial.println(hdc.readTemperature());
Serial.print("Humidity: ");
Serial.println(hdc.readHumidity());
}

Programming (Blockly)

In Blockly, the sensor can be read using the following block:

In the block, you can select between the different parameters of the temperature and humidity sensor:

  • Temperature in degrees Celsius (°C)
  • Humidity in percent (%)

Projects

Extras