[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-720457-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-720457-en":130,"doc-similar-720457":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","dht22-temperature-and-humidity-sensor-product-details-features-specifications-and-test-code","DHT22 Temperature and Humidity Sensor - Product Details, Features, Specifications and Test Code","","DHT22 is a digital temperature and humidity composite sensor that outputs calibrated measurements through a reliable digital signal. The document describes sensing technologies used to achieve high reliability and excellent long-term stability, highlighting fast response, strong anti-interference, and cost-effective performance. It lists key features such as compatibility with multiple control boards and shields, provides full technical specifications for voltage, ranges, and accuracy, and includes practical testing and wiring guidance for Arduino, Micro:bit, and Raspberry Pi.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/dht22-temperature-and-humidity-sensor-product-details-features-specifications-and-test-code/720457/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/dht22-temperature-and-humidity-sensor-product-details-features-specifications-and-test-code/720457.png","ImageObject",300,407,{"name":42,"@type":43},"Hazel","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-18",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What are the working voltage and measurement ranges of the DHT22 sensor?","Question",{"text":62,"@type":63},"The working voltage is 3.3V–5V. Humidity range is 0–100%RH, and temperature range is -40℃ to 80℃.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How accurate is the DHT22 compared with DHT11?",{"text":67,"@type":63},"DHT22 humidity accuracy is ±2%RH (typical) versus DHT11 ±5% (typical). DHT22 temperature accuracy is ±0.5% (typical) versus DHT11 ±2% (typical).",{"name":69,"@type":60,"acceptedAnswer":70},"How do you run the DHT22 test on Arduino, Micro:bit, and Raspberry Pi?",{"text":71,"@type":63},"Arduino: unzip the DHT library folder into the Arduino IDE libraries, reboot, and use the provided sketch with Serial Monitor at 9600 baud. Micro:bit: add the DHT22 library extension, run the on start and forever blocks, check data from P0, and wire to the shield with the DIP set to 3V3. Raspberry Pi: copy the C test code, compile with gcc, run the binary, and view terminal readings until exiting with Ctrl+C.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},720457,1795037443,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":112,"preview_page_count":33,"preview_urls":144},137441390410,"https://ap-avatar.wpscdn.com/avatar/2000252f4ab5702993?_k=1776741390130283984","DHT22 Temperature and Humidity Sensor ( 000x0000 Article Number)  \n(TS2176)  \nProduct Details  \nThis DHT22 digital temperature and humidity sensor is a composite sensor which contains a calibrated digital signal output of the temperature and humidity.  \nThe dedicated digital modules collection technology and temperature and humidity sensing technology are applied to ensure that the product has high reliability and excellent long-term stability.  \nQualities of ultra-fast response, strong anti-interference, and high cost performance make it a wide applied application or even the most demanding one.  \nFeatures and Benefits  \n􀁸 Compatible with RJ11 6P6C OKdo TelePort Control boards and expansion shields.  \n􀁸 Wide range and high precision temperature and humidity sensor with digital output and pre-calibrated sensor.  \nTechnical Specifications  \n\n| Sensor type | Digital input |\n| --- | --- |\n| Working voltage | 3.3V-5V |\n| Humidity measurement range | 0----100%RH |\n| Humidity measurement accuracy | ±2%RH |\n| Temperature measurement range | -40℃ to 80℃ |\n| Dimensions | 43mm * 26mm * 18mm |\n| Weight | 9.3g |\n\nApplications  \n􀁸 Weather station  \n􀁸 Automatic control  \n􀁸 Testing and inspection equipment  \n􀁸 Soil moisture detector  \nComparison  \n\n| Project | DHT11 | DHT22 |\n| --- | --- | --- |\n| Moisture |  |  |\n| Range | 5 ~ 95%RH | 0 ~ 100%RH |\n| Accuracy | ±5%(Typical) | ±2%(Typical) |\n| Temperature |  |  |\n| Range | -20 ~ 60℃ | -40 ~ 80℃ |\n| Accuracy | ±2%(Typical) | ±0 .5%(Typical) |\n\nThis module is compatible with the TS2180-Raspberry Pi shield, the TS2179-Micro:bit shield and the TS2178-TelePort main board.  \n􀂾 Arduino Application  \nThis module is compatible with the TS2178 TelePort control board.  \nTest Code  \nUnzip the library files, that is, copy the unzipped DHT folder into the libraries of Arduino IDE. After pasting it, then reboot the compiler.  \nFor instance: C:\\ Program Files\\Arduino\\libraries  \n\\#include \"DHT. h\"  \n\\#define DHTPIN 9 // define the connection pin  \n\\#define DHTTYPE DHT22 DHT dht(DHTPIN, DHTTYPE); void setup()  \n{  \nSerial. begin(9600); //set the baud rate  \nSerial. println(\"DHTxx test!\");//print the character and line wrap  \ndht. begin();}  \nvoid loop() {  \nfloat h = dht. readHumidity(); // calculate the humidity value float t = dht. readTemperature(); //calculate the temp.value if (isnan(t) || isnan(h))  \n{  \nSerial. println(\"Failed to read from DHT\");//show the contents and line wrap  \n} else {  \nSerial. print( \"Humidity: \"); //print the humidity Serial. print(h); //print the humidity value Serial. print( \" %\\t\");//print the content  \nSerial. print( \"Temperature: \"); //print the temperature Serial. print(t);//print the temperature value  \nSerial. println(\" *C\");//print the temperature unit and line wrap}  \n}  \nTest Result  \nWire up, upload code, power it up, open serial monitor and set baud rate to 9600. Then the serial monitor will show the current temperature and humidity value.  \nIf you want to know more details about Arduino and the TelePort control board, you can refer to TS2178 .  \n􀂾  Micro:bit Application  \nIt is compatible with the Micro:bit board and the TS2179 Micro:bit expansion board.  \nAdd the library of the DHT22 temperature and humidity sensor, as shown below; Use the library file to set code, click“Extensions”  \nEnter DHT22 to search, as shown below, click the library file and download it automatically.  \nAfter the library of the DHT22 temperature and humidity sensor is installed, then you can view the corresponding block in the blocks list.  \nTest Code  \nTest Result  \n..............①Run the“on start”block to boot the program..............②Open the LED matrix of the Micro:bit  \n.............. ③The program is run circularly under the command of“forever”block  \n..............④check the data from P0 of t he DHT22 sensor. If you use a 4-pin/no pcb version, you need to unplug the data pin. It is recommended to wait 1 ( DHT11) or ( DHT22) 2 seconds between each check  \n..............⑤The Micro:bit","cbCaivcdbxgadqdR","https://ap.wps.com/l/cbCaivcdbxgadqdR","pdf",739015,12,"English","# Product Details\n## Features and Benefits\n## Technical Specifications\n## Applications\n## Comparison (DHT11 vs DHT22)\n## Arduino Application\n## Micro:bit Application\n## Raspberry Pi Application","[{\"question\":\"What are the working voltage and measurement ranges of the DHT22 sensor?\",\"answer\":\"The working voltage is 3.3V–5V. Humidity range is 0–100%RH, and temperature range is -40℃ to 80℃.\"},{\"question\":\"How accurate is the DHT22 compared with DHT11?\",\"answer\":\"DHT22 humidity accuracy is ±2%RH (typical) versus DHT11 ±5% (typical). DHT22 temperature accuracy is ±0.5% (typical) versus DHT11 ±2% (typical).\"},{\"question\":\"How do you run the DHT22 test on Arduino, Micro:bit, and Raspberry Pi?\",\"answer\":\"Arduino: unzip the DHT library folder into the Arduino IDE libraries, reboot, and use the provided sketch with Serial Monitor at 9600 baud. Micro:bit: add the DHT22 library extension, run the on start and forever blocks, check data from P0, and wire to the shield with the DIP set to 3V3. Raspberry Pi: copy the C test code, compile with gcc, run the binary, and view terminal readings until exiting with Ctrl+C.\"}]","DHT22 Temperature and Humidity Sensor - Product Details, Features, Specifications and Test Code | PDF",[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/efc82e1e7dcea73cf0841b09acca4d33.webp",983,1390,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0195f96c857a7a37f1ed7c90c38991a9.webp",982,1389,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/20bffebe4976160b75fb2d68ae8c0634.webp",981,1387,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/21fbf5ae3fe642521dfa6c312dd6dd36.webp",980,1386,{"list":162,"token":11},[163,169,175,181,187,193,199,205,211,217],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":101,"category_name":29,"create_tm":168},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=1796110019&Signature=eEWrHPi%2Fw0dINwF%2BtBcESqWorN4%3D","az-delivery-dht22-temperature-module-setup-and-use-guide",1795037445,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":101,"category_name":29,"create_tm":174},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=1796110019&Signature=MQ3iuDQNTYL5XMS2secg4zBucGE%3D","dht11-temperature-and-humidity-sensor",1795037380,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":30,"category_name":29,"create_tm":180},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=1796110019&Signature=tO9gHQ3jKR4ahzbdxb9HRF5OtcQ%3D","dht11-humidity-temperature-sensor-module-user-guide-operating-specifications-and-arduino-example",1795037368,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":101,"category_name":29,"create_tm":186},719871,"LM35 Temperature Sensor - TS2151 - Product Details - Features and Applications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024373915/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=bS7i326b8NSm48s2ZEI4HZgSHzE%3D","lm35-temperature-sensor-ts2151-product-details-features-and-applications",1795032668,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":96,"category_name":29,"create_tm":192},720638,"4-Digit 8-Segment Display - TelePort - Product Details - Technical Specifications - Test Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023676679/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=TXrHG%2B%2BiPTuk3cmdD%2BUuzI7CQms%3D","4-digit-8-segment-display-teleport-product-details-technical-specifications-test-code",1795038592,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":96,"category_name":29,"create_tm":198},720277,"Arduino - Catalog","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024390592/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=gyM91q1UQcmUHluib9zlJY3cHvA%3D","arduino-catalog",1795036107,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":33,"category_name":29,"create_tm":204},720454,"DHT22 - Digital-output Relative Humidity & Temperature Sensor Module/Device","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396477/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=MofTJBKk3q1zMRW7ddaVB1avjh8%3D","dht22-digital-output-relative-humidity-temperature-sensor-moduledevice",1795037437,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":96,"category_name":29,"create_tm":210},720461,"Temperature and Humidity Module AM2302 Product Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396609/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=WPSUgiY0XzOtQRj8JRc90PTue3I%3D","temperature-and-humidity-module-am2302-product-manual",1795037453,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":96,"category_name":29,"create_tm":216},700492,"VL53L1X Distance Sensor - User Manual - Getting Started and Hardware Setup","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012027658/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=3hZ3KOxle7CW%2FnXlpSR%2FtcJa%2FTY%3D","vl53l1x-distance-sensor-user-manual-getting-started-and-hardware-setup",1794519114,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":96,"category_name":29,"create_tm":222},720439,"Temperature and Humidity Sensor on an Arduino - Intro","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396060/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=YAcqXsybFNAjQ2f9e9RHDpzUbK0%3D","temperature-and-humidity-sensor-on-an-arduino-intro",1795037376]