For example, if you want to test a DHT22, type 5. Just select the sensor you want to test and use by typing the number. This sample application allows you to select either a DHT10 through I2C either any other supported DHT through GPIO: Select the DHT sensor you want to use: You can only display temperature and humidity if the read is successful otherwise, this will raise an exception asĭebug.WriteLine($'Temperature: \u00B0C') ĭebug.WriteLine('Error reading DHT sensor')
DHT10 datasheet (Currently only Chinese).The DHT temperature and humidity sensors are very popular. If you are working with an ESP32, to use any of the DHT with 1 wire protocol, please use the Dhtxx.Esp32 version. This implementation will only work on few boards. IMPORTANT This sensor is very time sensitive. DHT10/DHT11/DHT12/DHT21/DHT22 - Digital-Output Relative Humidity & Temperature Sensor Module