The SHT1x digital humidity sensor is a reflow solderable sensor. The SHT1x series consists of a low-cost version with the SHT10 humidity sensor, a standard version with the SHT11 humidity sensor, and a high-end version with the SHT15 humidity sensor. As with every other Sensirion sensor type from the SHTxx humidity sensor family, they are fully calibrated and provide a digital output.
The humidity sensors are seamlessly coupled to a 14-bit-analog-to-digital converter and a serial interface circuit. This results in superior signal quality, a fast response time, and insensitivity to external disturbances (EMC).
One thing to note is that these sensors have been effectively replaced by others in sensirion’s range such as the SHT31 but they still work and have good performance for hobbyists
Layout
Code
You need to install the library from – https://github.com/practicalarduino/SHT1x
This is the built in example
[codesyntax lang=”cpp”]
#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(38400); // 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); }
[/codesyntax]
Testing
Open the serial monitor , all going well you should see output like this
Starting up
Temperature: 24.4300003052C / 76.0279922485F. Humidity: 51.05%
Temperature: 24.3600006104C / 75.8839950562F. Humidity: 51.33%
Temperature: 24.2799987793C / 75.7399978638F. Humidity: 51.48%
Temperature: 24.1999969482C / 75.5779953003F. Humidity: 51.69%
Temperature: 24.1199951172C / 75.4519958496F. Humidity: 51.90%
Temperature: 24.0800018311C / 75.3979949951F. Humidity: 52.08%
Temperature: 24.0100021362C / 75.2539978027F. Humidity: 52.23%
Links
100% original new Digital Humidity 2.54mm SHT11 DIP type Sensor Temperature Sensor DHT91