{"id":487,"date":"2016-08-07T16:33:41","date_gmt":"2016-08-07T15:33:41","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=487"},"modified":"2016-08-07T16:33:41","modified_gmt":"2016-08-07T15:33:41","slug":"dht-22-or-am2302-temperature-and-humidity-sensor","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/dht-22-or-am2302-temperature-and-humidity-sensor\/","title":{"rendered":"DHT 22 or AM2302 &#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\/AM2302.pdf\">datasheet.<\/a> The library from Adafruit <a href=\"https:\/\/github.com\/adafruit\/DHT-sensor-library\">on GIT<\/a> works\u00a0 fine.\u00a0 The library has been <a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/08\/DHT-sensor-library-master.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. The library from Adafruit on GIT works\u00a0 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 pretty simple. The module works on 3.3v &#8211; 5v and&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/dht-22-or-am2302-temperature-and-humidity-sensor\/\">Continue reading <span class=\"screen-reader-text\">DHT 22 or AM2302 &#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":[1],"tags":[80,79],"class_list":["post-487","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","tag-am-2302","tag-temperature-and-humidity-sensor","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/487","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=487"}],"version-history":[{"count":1,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/487\/revisions"}],"predecessor-version":[{"id":490,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/487\/revisions\/490"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}