Sensirion SHT20, SHT21 & SHT25 Temperature and Relative Humidity Sensor

Use the SHT2x (About Modules) module for reading data from the Sensirion SHT2x series of devices.

This module communicates with the chip over I2C. It also takes care of CRC checking, and will throw an error in case of corrupt data.

Basic usage:

var sht = require("SHT2x").connect(I2C1);
console.log('Temperature:', sht.readTemperature());
console.log('Humidity:', sht.readHumidity());

SHT2x module functions

readTemperature() - measures and returns the temperature in celsius

readHumidity() - measures and returns the humidity as a percentage (%), value between 1 and 100

This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.