[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-720439-105":59,"doc-detail-720439-en":130,"doc-similar-720439":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","temperature-and-humidity-sensor-on-an-arduino-intro","Temperature and Humidity Sensor on an Arduino - Intro","","Tutorial content explains how to use temperature and humidity sensors with Arduino, focusing on the DHT11 and DHT22 families and their electrical characteristics. It compares specifications such as power range, accuracy, sampling rate, physical size, and pinout variations, emphasizing the need to verify wiring protocol. It also covers the concept of relative humidity, including how it relates to water vapor saturation and condensation, then outlines sensor operating principles and example setup for displaying readings on a serial monitor and an LCD.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/temperature-and-humidity-sensor-on-an-arduino-intro/720439/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/temperature-and-humidity-sensor-on-an-arduino-intro/720439.png","ImageObject",300,407,{"name":92,"@type":93},"（）","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-24","2026-11-18",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What are the key differences between DHT11 and DHT22 sensors?","Question",{"text":112,"@type":113},"DHT11 and DHT22 differ in accuracy, operating temperature and humidity ranges, and sampling rate. DHT22 supports a wider range and is typically more accurate, but both are slow and should not be queried more frequently than their stated intervals.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Why is verifying the DHT sensor pinout important?",{"text":117,"@type":113},"Different sensor versions may label pins differently even when the appearance and spacing look similar. The tutorial notes that some boards place the signal, Vcc, and ground pins in different positions, so incorrect wiring can prevent correct readings.",{"name":119,"@type":110,"acceptedAnswer":120},"How does relative humidity relate to condensation?",{"text":121,"@type":113},"Relative humidity represents water vapor as a percentage of the saturation point for a given temperature. When relative humidity reaches 100%, water vapor begins to condense and form dew, since the air can no longer hold additional moisture.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},720439,1795037376,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":52,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},5909898202386,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Temperature and Humidity Sensor on an Arduino  \nThough this tutorial is based exclusively on the usage of Temperature and humidity sensors or just a temperature sensor such as the KY-028, other tutorials may make usage of these temperature sensors associated with other sensors that may be the focus of those tutorials  \nA. DHT11  \nIntroduction  \nFig 1. Test circuit to measure and display temperature and humidity  \nThe DHT11 and DHT22 humidity and temperature sensors have been manufactured to be user friendly when connected to an Arduino or other microcontrollers. They are perfect for remote weather stations, home environmental control systems, and farm or garden monitoring systems.  \nDHT11 vs DHT22  \nThere are two versions ofthe DHT sensor, which look a bit similar and have the same pinout, but have different characteristics. Here are the specifications:  \nDHT11  \n• Ultra low cost  \n• 3 to 5V power and I/O  \n• 2.5mA max current use during conversion (while requesting data)  \n• Good for 20-80% humidity readings with 5% accuracy  \n• Good for 0-50°C temperature readings ±2°C accuracy  \n• No more than 1 Hz sampling rate (once every second)  \n• Body size 15.5mm x 12mm x 5.5mm  \n• 4 pins with 0. 1\" spacing  \nYou have to be careful with the information about the pin labels. For example, the sensor shown in Fig 1 comes with the signal pin on the left side (as seen on Fig 1), followed by Vcc, then ground. I have another sensor well labeled since it does not follow this protocol, where the left pin ic Vcc, the middle pin is the signal pin, and the right pin is ground.  \nIn the wired version (PCB), the board includes a surface mounted 10K Ohm pull up resistor for the signal line (between the signal line and the VCC) to keep the signal level high by default.  \nDHT22 / AM2302 (Wired version)  \n• Low cost  \n• 3 to 5V power and I/O  \n• 2.5mA max current use during conversion (while requesting data)  \n• Good for 0-100% humidity readings with 2-5% accuracy  \n• Good for-40 to 80°C temperature readings ±0 .5°C accuracy  \n• No more than 0.5 Hz sampling rate (once every 2 seconds)  \n• Body size 15.1mm x 25mm x 7.7mm  \n• 4 pins with 0. 1\" spacing  \nIt is possible that the wired version of the DHT22 follows the protocol of assigning the middle pin to the signal line (however, in the case of this 3-pin version, VCC is the middle pin, ground is the left pin, and data is the right pin) . Make sure you verify the pinout of your sensor.  \nAs seen from the specifications, the DHT22 / AM2302 is more accurate and better over a larger range of temperatures, and the complete range of relative humidity. Both use a single digital pin and are slow in that you can't query them more than once every second or two; in fact, the more performing DHT22 is slower as measurements can only be obtained every 2 seconds, rather than 1 second for the DHT11 .  \nRelative Humidity?  \nThere are 3 definitions of humidity: absolute humidity, relative humidity, and specific humidity. We will be interested in relative humidity since this is what the DHT11 measures.  \nWikipedia states that The relative humidity (RH or Φ) of an air-water mixture is defined as the ratio of the partial pressure of water vapor pH2O in the mixture to the equilibrium vapor pressure  \nof water  \n*  \npH2O  \nover a flat surface of pure water at a given temperature.  \nF =  pH*2O  *100%  \npH2O  \nIn other words, relative humidity is the amount of water vapor in the air as a percentage of the saturation point of water vapor in air (maximum amount of water that can be held by the air), given the same temperature (temperature has a substantial effect on the humidity level) . At the saturation point, water vapor starts to condense and accumulate on surfaces forming dew.  \nCondensation, then, occurs at 100% relative humidity.  \nThe saturation point changes with air temperature. Cold air can hold less water vapor before it becomes saturated, and hot air can hold more water vapor before it becomes saturated.  \nMeasuremen","cbCaijfN5jWVjTGI","https://ap.wps.com/l/cbCaijfN5jWVjTGI","pdf",1348349,"English","# DHT11\n## Introduction\n## DHT11 vs DHT22\n## Relative Humidity?\n# Measurement of Humidity and Temperature\n## DHT11 Setup on an Arduino\n## Display Humidity and Temperature on the Serial Monitor and the LCD","[{\"question\":\"What are the key differences between DHT11 and DHT22 sensors?\",\"answer\":\"DHT11 and DHT22 differ in accuracy, operating temperature and humidity ranges, and sampling rate. DHT22 supports a wider range and is typically more accurate, but both are slow and should not be queried more frequently than their stated intervals.\"},{\"question\":\"Why is verifying the DHT sensor pinout important?\",\"answer\":\"Different sensor versions may label pins differently even when the appearance and spacing look similar. The tutorial notes that some boards place the signal, Vcc, and ground pins in different positions, so incorrect wiring can prevent correct readings.\"},{\"question\":\"How does relative humidity relate to condensation?\",\"answer\":\"Relative humidity represents water vapor as a percentage of the saturation point for a given temperature. When relative humidity reaches 100%, water vapor begins to condense and form dew, since the air can no longer hold additional moisture.\"}]","Temperature and Humidity Sensor on an Arduino - Intro | PDF",25,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/b14ef499900c687488ed5ee3a0cdb8fd.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0b00f42e04ecec61d74a8575578a9101.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/2f6cc9ba64aab8f3a0f4740d7c778967.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1b43163af7a51a4d6de03faae958d4c9.webp",980,1268,{"list":162,"token":66},[163,169,175,181,187,193,199,204,210,216],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":81,"category_name":30,"create_tm":168},720435,"DHT11 Humidity & Temperature Sensor Module - User Guide - Operating Specifications and Arduino Example","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396025/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=YR5K8Fw1kDBjQNCMEeCHPljPvO0%3D","dht11-humidity-temperature-sensor-module-user-guide-operating-specifications-and-arduino-example",1795037368,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":81,"category_name":30,"create_tm":174},689901,"HC-SR04 Ultrasonic Distance Sensor On an Arduino - Overview, Specifications, and Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001443281/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=%2BrvoDa%2BiXUDJSA5%2BY%2Fw%2FtsVoeew%3D","hc-sr04-ultrasonic-distance-sensor-on-an-arduino-overview-specifications-and-code",1794133605,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":29,"category_name":30,"create_tm":180},720441,"DHT11 Temperature and Humidity Sensor","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396075/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=FcZKBPwYhg%2BCcGHI6a2QR8AczZE%3D","dht11-temperature-and-humidity-sensor",1795037380,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":29,"category_name":30,"create_tm":186},720459,"AZ-Delivery DHT22 Temperature module - Setup and use guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396557/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=JtYwnMxoGd8bbSeUCVMuSTrWGk0%3D","az-delivery-dht22-temperature-module-setup-and-use-guide",1795037445,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":29,"category_name":30,"create_tm":192},720460,"DHT22 2 click - specifications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396585/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=gu2QUG0wpK8A2xg8AENAwWUYYSc%3D","dht22-2-click-specifications",1795037450,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":81,"category_name":30,"create_tm":198},700544,"Arduino 37 in 1 Modules Kit - Overview - Components Modules by Category - Connection Table","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011567655/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=354g42onj8TRnYazZaF8fr1sBzU%3D","arduino-37-in-1-modules-kit-overview-components-modules-by-category-connection-table",1794519273,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":19,"category_name":30,"create_tm":168},720434,"DHT11, DHT22 and AM2302 Sensors - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396030/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=kiZ8aFWL3co4my2oazSjg2yJzfM%3D","dht11-dht22-and-am2302-sensors-overview",{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":81,"category_name":30,"create_tm":209},720457,"DHT22 Temperature and Humidity Sensor - Product Details, Features, Specifications and Test Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396540/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=24ichpg8GhE3jGWXhlSrd%2BcyE4A%3D","dht22-temperature-and-humidity-sensor-product-details-features-specifications-and-test-code",1795037443,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":19,"category_name":30,"create_tm":215},700469,"IoT-Based Remote Patient Health Monitoring System Using Raspberry Pi and Machine Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012026811/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=%2Ba%2BIUlVVWfnKccIIa0pNh%2Fnmhno%3D","iot-based-remote-patient-health-monitoring-system-using-raspberry-pi-and-machine-learning",1794518968,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":19,"category_name":30,"create_tm":221},720433,"DHT11 - Digital Temperature and Humidity Sensor - Product Parameters and Application Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396013/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=aMZYEEdBQ9dGEyWQXh16xbsdb0s%3D","dht11-digital-temperature-and-humidity-sensor-product-parameters-and-application-guide",1795037365]