{"id":476,"date":"2016-08-07T16:22:39","date_gmt":"2016-08-07T15:22:39","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=476"},"modified":"2016-08-07T16:34:02","modified_gmt":"2016-08-07T15:34:02","slug":"dht-11-temperature-and-humidity-sensor","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/dht-11-temperature-and-humidity-sensor\/","title":{"rendered":"DHT 11 &#8211; Temperature and Humidity sensor"},"content":{"rendered":"<p>Mostly made by Aosong. Here is the <a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/08\/DHT11.pdf\">datasheet.<\/a> Libraries are little rare and seems to be bit old. But <a href=\"https:\/\/github.com\/virtuabotix\/DHT11LIB\">this one on GIT<\/a> is working fine.\u00a0 The library has been <a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/08\/DHT11_2S0A.zip\">attached here<\/a> also in case the GIT one is not available for any reason.<\/p>\n<p>There are example codes in the library. Wiring the module is pretty simple.<\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/08\/DH-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-484 size-medium\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/08\/DH-11-300x210.png\" alt=\"DH-11\" width=\"300\" height=\"210\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/08\/DH-11-300x210.png 300w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/08\/DH-11.png 711w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The module works on 3.3v &#8211; 5v and uses I2C for communication.<\/p>\n<p><em>As per the datasheets the module will malfunction under harsh conditions and contamination. But it may recover if left for sometime.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mostly made by Aosong. Here is the datasheet. Libraries are little rare and seems to be bit old. But this one on GIT is working fine.\u00a0 The library has been attached here also in case the GIT one is not available for any reason. There are example codes in the library. Wiring the module is&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/dht-11-temperature-and-humidity-sensor\/\">Continue reading <span class=\"screen-reader-text\">DHT 11 &#8211; Temperature and Humidity sensor<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[77,78,79],"class_list":["post-476","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-dht-11","tag-humidity-sensor","tag-temperature-and-humidity-sensor","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=476"}],"version-history":[{"count":3,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":491,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/476\/revisions\/491"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}