HDC1080
The HDC1080 is a digital humidity sensor with an integrated temperature sensor that provides excellent measurement accuracy at very low power. With this module, you can make a weather station for your home.

When using HDC1080 and OBJEX Flex, it is recommended not to flex the cables when the board running.
#include "ClosedCube_HDC1080.h"
ClosedCube_HDC1080 hdc1080;
void setup() {
Serial.begin(115200);
hdc1080.begin(0x40); // NOTE: OBJEX Link v1.6-C3 specify I2C pins(SDA=18/SCL=19)
}
void loop() {
Serial.print("T=");
Serial.print(hdc1080.readTemperature());
Serial.print("C, RH=");
Serial.print(hdc1080.readHumidity());
Serial.println("%");
}
Last modified 1yr ago