Sensirion / embedded-sht

Embedded SHT Drivers for Sensirion Temperature and Humidity Sensors - Download the Zip Package from the Release Page
https://github.com/Sensirion/embedded-sht/releases
BSD 3-Clause "New" or "Revised" License
91 stars 38 forks source link
driver embedded humidity humidity-sens i2c raspberry-pi raspberrypi relative-humidity-sensors sensirion sensirion-embedded-drivers sensor sht31 sht35 sht3x sht4x shtc3 shtw2 temperature temperature-sensor

embedded-sht CircleCI GitHub license

This repository contains the embedded driver sources for Sensirion's SHT product line.

Download the Latest Driver Release

Download the latest ready-to-use driver bundle from the releases page

We strongly recommend to use the driver from the release bundle instead of cloning the repository.

Clone this repository

 git clone --recursive https://github.com/Sensirion/embedded-sht.git

Repository content

For sht3x and sht4x there are also updated drivers available in separate repositories.

Collecting resources

make release

This will create the release folder with the necessary driver files in it, including a Makefile. That way, you have just ONE folder with all the sources ready to build your driver for your platform.

Files to adjust (from embedded-common)

You only need to touch the following files:

and depending on your i2c implementation either of the following:

Building the driver

  1. Adjust sensirion_arch_config.h if you don't have the <stdint.h> header file available
  2. Implement necessary functions in one of the *_implementation.c files described above
  3. make

Please check the embedded-common repository for further information and sample implementations.