1.. _dht: 2 3DHT: Aosong DHT Digital-output Humidity and Temperature Sensor 4############################################################## 5 6Description 7*********** 8 9This sample application periodically (0.5 Hz) measures the ambient 10temperature and humidity. The result is written to the console. 11 12Wiring 13******* 14 15This sample uses an external breakout for the sensor. A devicetree 16overlay must be provided to identify the sensor variant and the GPIO 17used to control the sensor. 18 19Building and Running 20******************** 21 22After providing a devicetree overlay that specifies the sensor location, 23build this sample app using: 24 25.. zephyr-app-commands:: 26 :zephyr-app: samples/sensor/dht 27 :board: nrf52dk_nrf52832 28 :goals: build flash 29 30Sample Output 31============= 32 33.. code-block:: console 34 35 *** Booting Zephyr OS build zephyr-v2.1.0-329-g38418b26c4cc *** 36 [0:00:00.027]: 20.0 Cel ; 48.7 %RH 37 [0:00:02.053]: 19.8 Cel ; 48.7 %RH 38 [0:00:04.079]: 20.0 Cel ; 48.7 %RH 39 [0:00:06.105]: 19.8 Cel ; 48.7 %RH 40 [0:00:08.130]: 20.0 Cel ; 48.8 %RH 41 [0:00:10.156]: 20.1 Cel ; 48.8 %RH 42 [0:00:12.182]: 19.7 Cel ; 48.7 %RH 43 [0:00:14.207]: 20.0 Cel ; 48.8 %RH 44 45<repeats endlessly> 46