How to Hookup HIH6130 Temperature Sensor to Arduino Board
Connecting the Honeywell HumidIcon™ HIH6130 Digital Humidity - Temperature Sensor to the Arduino is pretty simple. 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 HIH6130 library and sample sketch. We can then program the board and check out the results via the console.
- Arduino Board
- HIH6130 Sensor on Breakout Board. We used the Sparkfun HIH6130 (SEN-11295) 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 HIH6130 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.
The library only supports reading the humidity and temperature from the sensor. It does not support command and alarm programming.
In the sample sketch below we read the HIH6130 sensor and output the results to the console every three seconds.