<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=DHT22_SDK</id>
	<title>DHT22 SDK - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=DHT22_SDK"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=DHT22_SDK&amp;action=history"/>
	<updated>2026-06-04T23:40:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=DHT22_SDK&amp;diff=31157&amp;oldid=prev</id>
		<title>Chao at 12:51, 13 May 2021</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=DHT22_SDK&amp;diff=31157&amp;oldid=prev"/>
		<updated>2021-05-13T12:51:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Data ==&lt;br /&gt;
 DATA = 16 bits RH data + 16 bits Temperature data + 8 bits check-sum check-sum check-sum&lt;br /&gt;
 Example: MCU has received 40 bits data from AM2302 as&lt;br /&gt;
 0000 0010 1000 1100 - 0000 0001 0101 1111 - 1110 1110&lt;br /&gt;
 16 bits RH data - 16 bits T data - check sum&lt;br /&gt;
Here we convert 16 bits RH data from binary system to decimal system,&lt;br /&gt;
 0000 0010 1000 1100 → 652&lt;br /&gt;
 Binary system →Decimal system&lt;br /&gt;
 RH=652/10=65.2%RH &lt;br /&gt;
Here we convert 16 bits T data from binary system to decimal system,&lt;br /&gt;
 0000 0001 0101 1111 → 351&lt;br /&gt;
 Binary system → Decimal system&lt;br /&gt;
 T=351/10=35.1 &lt;br /&gt;
When highest bit of temperature is 1, it means the temperature is below 0 degree Celsius.&lt;br /&gt;
 Example: 1000 0000 0110 0101, T= minus 10.1℃&lt;br /&gt;
          16 bits T data&lt;br /&gt;
 Sum= 0000 0010 + 1000 1100 + 0000 0001 + 0101 1111 = 1110 1110&lt;br /&gt;
 Check-sum = the last 8 bits of Sum = 1110 1110&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Datasheet ==&lt;br /&gt;
&lt;br /&gt;
* [[File:DHT22-datasheet.pdf|DHT22]]&lt;br /&gt;
[[category: DHT22]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>