![]() Set these values to test according to the list below: For example, if you want to test a DHT22, adjust it to 5. 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: °C") ĭebug.WriteLine("Error reading DHT sensor") DHT10 datasheet (Currently only Chinese).The DHT temperature and humidity sensors are very popular. One is used to write to the sensor and the other is used to read the data using RMT. Don't use this implementation for those MCU. IMPORTANT This implementation will only work on with ESP32. DHTxx.Esp32 - Digital-Output Relative Humidity & Temperature Sensor Module
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |