cactus.io logo

How to Hookup Sensirion SHT15 Temperature Sensor to Arduino

Overview

The SHT15 from Sensirion is a factory calibrated sensor for measuring relative humidity & temperature. It use a digital 2 wire bus. This bus is not I2C compatible. The easiest way to use this sensor is using a breakout board. We use the breakout board from Sparkfun. This board has the pullup resistors already installed. We just need to connect the wires from the SHT15 board to the Arduino and load the software.

Hardware and Software Parts List

  • Arduino Board
  • Sensirion SHT15 Temperature Humidity Sensor. The one we used was from Sparkfun. PN SEN-08257
  • Breadboard hookup wires
  • USB Cable to suite Arduino

Wiring Diagram for connecting the SHT15 to a Arduino Board

Connect Arduino to SHT15 Temperature Sensor Hookup

Software

We can test this sensor using the simple sketch as shown below. It requires the cactus.io SHT15 Library to communicate with the sensor.

It reads the temperature and humidity every 2 seconds and then displays it on the console.

It is important that we define the data and clock pins in the sketch. If you decide to use pins other than pins 2 and 3, then you will need to change the values in the sketch. This is line 10 and 11 shown below

Limitations
  • Its blocking code.
SHT15 Sample Sketch
Download as (Arduino Sketch) (Text File)
1
/* Example sketch for Sensirion SHT15 humidity - temperature sensor
2
Written by cactus.io, and requires the cactus_io_SHT15 library. Public domain
3
This sketch will work with the Sparkfun SHT15 Breakout board.
4
For hookup details using this sensor then visit
5
http://cactus.io/hookups/sensors/temperature-humidity/sht15/hookup-arduino-to-sensirion-SHT15-temp-humidity-sensor
6
*/
7
8
#include "cactus_io_SHT15.h"
9
10
SHT15 sht = SHT15(SHT_DataPin, SHT_ClockPin);
11
12
void setup(){
13
Serial.begin(9600);
14
Serial.println("Sensirion SHT15 Humidity - Temperature Sensor | cactus.io");
15
Serial.println("RH\t\tTemp (C)\tTemp (F)\tDew Point (C)");
16
}
17
18
void loop(){
19
20
sht.readSensor();
21
22
Serial.print(sht.getHumidity()); Serial.print(" %\t\t");
23
Serial.print(sht.getTemperature_C()); Serial.print(" *C\t");
24
Serial.print(sht.getTemperature_F()); Serial.print(" *F\t");
25
Serial.print(sht.getDewPoint()); Serial.println(" *C\t");
26
27
// Add a 2 second delay.
28
delay(2000);
29
}

Sketch Output

Connect Arduino to Sensirion SHT15 Humidity - Temperature Sensor

License