All Projects → Sensirion → arduino-sht

Sensirion / arduino-sht

Licence: BSD-3-Clause License
Repository for Sensirion humidity and temperature sensor support on Arduino

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to arduino-sht

embedded-sht
Embedded SHT Drivers for Sensirion Temperature and Humidity Sensors - Download the Zip Package from the Release Page
Stars: ✭ 53 (+23.26%)
Mutual labels:  i2c, sensor, driver, temperature-sensor, relative-humidity-sensors, sensirion
embedded-sps
Embedded i2c Driver for Sensirion Particulate Matter Sensors - Download the Zip Package from the Release Page
Stars: ✭ 36 (-16.28%)
Mutual labels:  i2c, sensor, driver, sensirion
embedded-ccs811-rs
Platform agnostic Rust driver for the CCS811 ultra-low power digital gas sensor for monitoring indoor air quality
Stars: ✭ 12 (-72.09%)
Mutual labels:  i2c, sensor, driver
SwiftySHT20
⚡ A Swift library for the I2C SHT20 Humidity and Temperature Sensor.
Stars: ✭ 19 (-55.81%)
Mutual labels:  i2c, temperature-sensor, humidity-sensor
mlx90632-library
MLX90632 library for the Melexis 90632 Infra Red temperature sensor.
Stars: ✭ 34 (-20.93%)
Mutual labels:  sensor, driver, temperature-sensor
BME680
Arduino Library to access the Bosch BME680 - temperature, pressure, humidity and gas sensor
Stars: ✭ 30 (-30.23%)
Mutual labels:  i2c, sensor, arduino-library
AHT10
This is an Arduino library for Aosong ASAIR AHT10, AHT15 Digital Humidity & Temperature Sensor
Stars: ✭ 32 (-25.58%)
Mutual labels:  arduino-library, temperature-sensor, humidity-sensor
MCP7940
Arduino Library to access the MCP7940M, MCP7940N and MCP7940x Real-Time chips
Stars: ✭ 29 (-32.56%)
Mutual labels:  i2c, arduino-library
arduino-sps
Arduino library for Sensirion SPS30
Stars: ✭ 36 (-16.28%)
Mutual labels:  i2c, sensirion
pwm-pca9685-rs
Platform-agnostic Rust driver for the PCA9685 I2C 16-channel, 12-bit PWM/Servo/LED controller
Stars: ✭ 19 (-55.81%)
Mutual labels:  i2c, driver
vl53l0x-linux
Library for interfacing with VL53L0X time-of-flight distance sensor under Linux
Stars: ✭ 19 (-55.81%)
Mutual labels:  i2c, sensor
PCF8575 library
Library to use i2c digital expander with arduino, esp8266 and esp32. Can read write digital value with only 2 wire (perfect for ESP-01).
Stars: ✭ 28 (-34.88%)
Mutual labels:  i2c, arduino-library
sps30
Sensirion SPS30 driver for ESP32, SODAQ, MEGA2560, UNO, ESP8266, Particle-photon on UART OR I2C coummunication
Stars: ✭ 57 (+32.56%)
Mutual labels:  sensor, sensirion
homeassistant-config
My Home Assistant Configuration
Stars: ✭ 22 (-48.84%)
Mutual labels:  sensor, humidity-sensor
arduino-ble-gadget
Create your own Do-It-Yourself BLE enabled sensor gadget on the ESP32 platform.
Stars: ✭ 31 (-27.91%)
Mutual labels:  arduino-library, sensirion
Adafruit TSL2591 Library
This is an Arduino library for the TSL2591 digital luminosity (light) sensors.
Stars: ✭ 46 (+6.98%)
Mutual labels:  sensor, arduino-library
mpy-lib
HTS221, LPS22, LIS2DW12, LIS2MDL, LSM6DSO, STTS751, bme280, bmp280, APDS9930, TM1650, TM1637, LCD1602, all kinds of micropython drives, examples, libs
Stars: ✭ 118 (+174.42%)
Mutual labels:  i2c, sensor
SensorFusion
A simple implementation of some complex Sensor Fusion algorithms
Stars: ✭ 101 (+134.88%)
Mutual labels:  sensor, arduino-library
SerialTransfer
Arduino library to transfer dynamic, packetized data fast and reliably via Serial, I2C, or SPI
Stars: ✭ 273 (+534.88%)
Mutual labels:  i2c, arduino-library
gfx demo
GFX Demo for Arduino and the ESP-IDF
Stars: ✭ 63 (+46.51%)
Mutual labels:  i2c, arduino-library

arduino-sht

Repository for Sensirion humidity and temperature sensor support on Arduino

Supported sensors:

  • SHTC1
  • SHTC3
  • SHTW1
  • SHTW2
  • SHT3x-DIS (I2C)
  • SHT3x-ARP (ratiometric analog voltage output)
  • SHT85
  • SHT4x

Installation

The recommended way to install arduino-sht is through the Library Manager of the Arduino IDE. To access it, go to the Tools menu and select Manage Libraries..., and search for the library name there.

If you prefer to install it manually, you can download either via git or from the releases page and place it in your Arduino/libraries directory. After restarting the Arduino IDE, you will see the new SHTSensor menu items under libraries and examples.

Integrating it into your sketch

Assuming you installed the library as described above, the following steps are necessary:

  1. Import the Wire library like this: From the menu bar, select Sketch > Import Library > Wire
  2. Import the arduino-sht library: From the menu bar, select Sketch > Import Library > arduino-sht
  3. Create an instance of the SHTSensor class (SHTSensor sht;)
  4. In setup(), make sure to init the Wire library with Wire.begin()
  5. If you want to use the serial console, remember to initialize the Serial library with Serial.begin(9600)
  6. Call sht.readSample() in the loop() function, which reads a temperature and humidity sample from the sensor
  7. Use sht.getHumidity() and sht.getTemperature() to get the values from the last sample

Important: getHumidity() and getTemperature() do not read a new sample from the sensor, but return the values read last. To read a new sample, make sure to call readSample()

Example projects

See example project sht-autodetect

Usage with multiple SHT31 sensors

See example project multiple-sht-sensors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].