Hookup TI HDC1008 Humidity Temperature Sensor to Arduino
The easist way to connect the TI HDC1008 Sensor is to use a breakout board. We used the Adafruit HDC1008 board. It requires only 4 wires. This being for power and data. Once the sensor is connected up to the Arduino the next step is to download the HDC1008 library and sample sketch. We can then program the board and check out the results via the console.
- Arduino Board
- TI HDC1008 Sensor on Breakout Board. We used the breakout board.
- Breadboard hookup wires
- USB Cable to suite Arduino
Connecting up the sensor requires 4 wires. We can source power from either the 5V or the 3.3V pin on the Arduino. We are using the 5V pin in the diagram. The data wire (SDA) is connected to pin A4. The clock wire (SCL) is connected to pin A5 on the Arduino. We are not using the alarm (AL_H and AL_L) outputs from the sensor. The alarm outputs require additional programming and software that is not included in the cactus.io HDC1008 library.
You will need to download the cactus.iolibrary to use the sample sketch shown below.
Using the Arduino IDE we can run this sample sketch to read data from the sensor. Once you upload the compiled code to the Arduino board you can see the results displayed on the serial console.
In the sample sketch below we read the HDC1008 sensor and output the results to the console every three seconds.