README.rst
1.. zephyr:code-sample:: sht3xd
2 :name: SHT3XD humidity sensor
3 :relevant-api: sensor_interface
4
5 Get temperature and humidity from a SHT3XD sensor (polling & trigger mode).
6
7Description
8***********
9
10This sample application periodically (2 Hz) measures the ambient
11temperature and humidity. The result is written to the console.
12Optionally, it also shows how to use the upper threshold triggers.
13
14References
15**********
16
17 - `SHT3X-DIS sensor <https://www.sensirion.com/en/environmental-sensors/humidity-sensors/digital-humidity-sensors-for-various-applications/>`_
18
19Wiring
20*******
21
22This sample uses the SHT3X_DIS sensor controlled using the I2C interface.
23Connect Supply: **VDD**, **GND** and Interface: **SDA**, **SCL**
24and optionally connect the **ALERT** to a interrupt capable GPIO.
25The supply voltage can be in the 2.15V to 5.5V range.
26Depending on the baseboard used, the **SDA** and **SCL** lines require Pull-Up
27resistors.
28
29Building and Running
30********************
31
32This project outputs sensor data to the console. It requires a SHT3XD
33sensor. It should work with any platform featuring a I2C peripheral
34interface. It does not work on QEMU. In this example below the
35:zephyr:board:`nrf51_ble400` board is used.
36
37
38.. zephyr-app-commands::
39 :zephyr-app: samples/sensor/sht3xd
40 :board: nrf51_ble400
41 :goals: build flash
42
43Sample Output
44=============
45
46.. code-block:: console
47
48 SHT3XD: 19.64 Cel ; 41.96 %RH
49 SHT3XD: 19.74 Cel ; 42.06 %RH
50 SHT3XD: 19.75 Cel ; 42.08 %RH
51
52<repeats endlessly>
53