Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 952 Bytes

README.md

File metadata and controls

49 lines (33 loc) · 952 Bytes

SHT3x - Temperature & Humidity Sensor

SHT3x is the next generation of Sensirion’s temperature and humidity sensors. This project supports SHT30, SHT31 and SHT35.

Documentation

Board

Sensor

Circuit diagram

Usage

Hardware Required

  • SHT3x
  • Male/Female Jumper Wires

Circuit

  • SCL - SCL
  • SDA - SDA
  • VCC - 5V
  • GND - GND
  • ADR - GND

Code

I2cConnectionSettings settings = new I2cConnectionSettings(1, (byte)I2cAddress.AddrLow);
I2cDevice device = I2cDevice.Create(settings);

using (Sht3x sensor = new Sht3x(device))
{
    // read temperature (℃)
    double temperature = sensor.Temperature.Celsius;
    // read humidity (%)
    double humidity = sensor.Humidity;
    // open heater
    sensor.Heater = true;
}

Result

Sample result