
The sensor is supplied without documentation. If you write your own code instead of using one of the Arduino or C libraries available on the internet, you should be ready to do some detective work. Not all DTH22 specifications are created equal. They have been translated from Chinese. Find one that clearly explains the waveform of the data (no manual notation). The numerical format of the sensor output is also not clear from the data sheet. The best source of information I found on sensor output was an article in Nuts & Volts Magazine (NVM). Find the NVM article on DTH22. Armed with this information and a fast microcontroller, this is an easy-to-use sensor. It works for me with a PIC18F26K22 clocked at 16MHz. The code was written in PBP3.

GeeekPi Raspberry Pi Cluster Case with Cooling Fan and Heatsink for Pi 4 Model B, 3 Model B+ & 3/2 Model B
11 Review

LAFVIN Super Starter Kit for Arduino R3 Mega2560 Mega328 Nano with Detailed Tutorial - Compatible with Arduino IDE
11 Review

Vilros Raspberry Pi 4 4GB Complete Starter Kit - Black Fan-Cooled Aluminum Case for Heavy-Duty Performance
12 Review

REXQualis Comprehensive Starter Kit with Arduino MEGA 2560 & Detailed Tutorial for Arduino IDE Compatibility
11 Review

π₯οΈ Helifouner 450-Piece Computer Standoffs Spacer Screws Kit: Ideal for Hard Drive, Motherboard, Fan, Power Graphics & Computer Cases
10 Review

36-Pack Black Rubber PC CPU/Case Fan Screws/Rivets Set for Computer
11 Review

Glarks 660 Pieces Phillips Assortment Motherboard
10 Review

Comprehensive 500pcs Laptop Screw Kit Set for π© IBM HP Dell Lenovo Samsung Sony Toshiba Gateway Acer
12 Review