1.. _sht4x: 2 3SHT4X: High Accuracy Digital I2C Humidity Sensor 4################################################# 5 6Description 7*********** 8 9This sample application periodically reads the ambient temperature and humidity 10from an SHT4X device. The result is written to the console. 11 12The SHT4X sensor has an optional heater that can be useful for specific 13environments or applications (refer to the datasheet for more information). 14To utilize the heater, check the Kconfig options for this application. 15 16References 17********** 18 19 - `SHT4X sensor <https://sensirion.com/products/catalog/SHT45>`_ 20 21Wiring 22****** 23 24This sample uses the SHT4X sensor controlled via the I2C interface. 25Connect Supply: **VDD**, **GND** and Interface: **SDA**, **SCL**. 26The supply voltage can be in the 1.7V to 3.6V range. 27Depending on the baseboard used, the **SDA** and **SCL** lines may require Pull-Up 28resistors. 29 30Building and Running 31******************** 32 33This project outputs sensor data to the console. It requires an SHT4X 34sensor. It should work with any platform featuring an I2C peripheral 35interface. This example includes a device tree overlay 36for the :zephyr:board:`blackpill_f411ce` board. 37 38.. zephyr-app-commands:: 39 :zephyr-app: samples/sensor/sht4x 40 :board: blackpill_f411ce 41 :goals: build flash 42 43Sample Output 44============= 45 46.. code-block:: console 47 48 *** Booting Zephyr OS build v2.6.0-rc1-315-g50d8d1187138 *** 49 SHT4X: 23.64 Temp. [C] ; 30.74 RH [%] 50 SHT4X: 23.66 Temp. [C] ; 32.16 RH [%] 51 SHT4X: 23.63 Temp. [C] ; 30.83 RH [%] 52 53The datasheet states that the sensor measures temperature and humidity in degrees Celsius 54and percent relative humidity respectively. 55