Contents

Interfacing SHT10 Temperature and Humidity Sensor with Arduino

SHT10 Temperature Humidity Sensor Features

The SHT10 module is a high accuracy sensor for measuring temperature and humidity. This module can be easily connected to a variety of microcontrollers using two digital output pins. One for data transfer and the other for adjusting data transfer speed between the module and the microcontroller. The range of temperature measurement is -40 to +123.8 degrees Celsius with 0.01 degrees Celsius accuracy. The humidity range is 0 to 100% with 0.05% accuracy. This module is also capable of calculating temperature in both degrees Celsius and Fahrenheit.

SHT10 Temperature Humidity Sensor Pinout

This Module has 4 pins:

  • GND: Ground
  • SCK: Clock pin
  • DATA: Data pin
  • VCC: Module power supply – 5V

You can see the pinout of this module in the image below.

Required Materials

Hardware Components

Arduino UNO R3 × 1
SHT10 Temperature Humidity Sensor × 1
Male to Female Jumper wire × 1

Software Apps

Arduino IDE

Interfacing SHT10 Temperature Humidity Sensor with Arduino

Step 1: Circuit

The following circuit show how you should connect Arduino to SHT10 sensor. Connect wires accordingly.

Step 2: Library

Download the SHT1x library here. Then go to the Include Library and install the library.

Tip

If you need more help with installing a library on Arduino, read this tutorial: How to Install an Arduino Library

Step 3: Code

Upload the following code to Arduino. After that, open the Serial Monitor.

   /* 
modified on Dec 29, 2020
Modified by MehranMaleki from Arduino Examples
Home
*/ #include <SHT1x.h> //Specify data and clock connections and instantiate SHT1x object #define dataPin 10 #define clockPin 11 SHT1x sht1x(dataPin, clockPin); void setup() { Serial.begin(9600); //Open serial connection to report values to host Serial.println("Starting up"); } void loop() { float temp_c; float temp_f; float humidity; //Read values from the sensor temp_c = sht1x.readTemperatureC(); temp_f = sht1x.readTemperatureF(); humidity = sht1x.readHumidity(); //Print the values to the serial port Serial.print("Temperature: "); Serial.print(temp_c, DEC); Serial.print("C / "); Serial.print(temp_f, DEC); Serial.print("F. Humidity: "); Serial.print(humidity); Serial.println("%"); delay(2000); }

In this code, the humidity and temperature data are received from the sensor every 2 seconds and appears on the Serial Monitor.

The output is as follows:

Liked What You See?​
Get Updates And Learn From The Best​

Leave a Reply

Your email address will not be published. Required fields are marked *