<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=WeMOS%3A_D1_R1_mini_DHT11_read</id>
	<title>WeMOS: D1 R1 mini DHT11 read - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=WeMOS%3A_D1_R1_mini_DHT11_read"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=WeMOS:_D1_R1_mini_DHT11_read&amp;action=history"/>
	<updated>2026-04-04T20:33:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=WeMOS:_D1_R1_mini_DHT11_read&amp;diff=70311&amp;oldid=prev</id>
		<title>Onnowpurbo at 03:49, 16 May 2024</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=WeMOS:_D1_R1_mini_DHT11_read&amp;diff=70311&amp;oldid=prev"/>
		<updated>2024-05-16T03:49:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:49, 16 May 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l31&quot; &gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  void setup() {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  void setup() {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    Serial.begin(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;9600&lt;/del&gt;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    Serial.begin(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;115200&lt;/ins&gt;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    Serial.println(F(&amp;quot;DHTxx test!&amp;quot;));&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    Serial.println(F(&amp;quot;DHTxx test!&amp;quot;));&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=WeMOS:_D1_R1_mini_DHT11_read&amp;diff=70310&amp;oldid=prev</id>
		<title>Onnowpurbo at 03:41, 16 May 2024</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=WeMOS:_D1_R1_mini_DHT11_read&amp;diff=70310&amp;oldid=prev"/>
		<updated>2024-05-16T03:41:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:41, 16 May 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot; &gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // Connect pin 2 of the sensor to whatever your DHTPIN is&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // Connect pin 2 of the sensor to whatever your DHTPIN is&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // Connect pin 3 (on the right) of the sensor to GROUND (if your sensor has 3 pins)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // Connect pin 3 (on the right) of the sensor to GROUND (if your sensor has 3 pins)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // Connect pin 4 (on the right) of the sensor to GROUND and leave the pin 3 EMPTY (if your sensor has 4  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // Connect pin 4 (on the right) of the sensor to GROUND and leave the pin 3 EMPTY (if your sensor has 4 pins)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;pins)&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // Initialize DHT sensor.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // Initialize DHT sensor.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=WeMOS:_D1_R1_mini_DHT11_read&amp;diff=70309&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot; // Example testing sketch for various DHT humidity/temperature sensors  // Written by ladyada, public domain    // REQUIRES the following Arduino libraries:  // - DHT Sensor...&quot;</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=WeMOS:_D1_R1_mini_DHT11_read&amp;diff=70309&amp;oldid=prev"/>
		<updated>2024-05-16T03:41:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; // Example testing sketch for various DHT humidity/temperature sensors  // Written by ladyada, public domain    // REQUIRES the following Arduino libraries:  // - DHT Sensor...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; // Example testing sketch for various DHT humidity/temperature sensors&lt;br /&gt;
 // Written by ladyada, public domain&lt;br /&gt;
 &lt;br /&gt;
 // REQUIRES the following Arduino libraries:&lt;br /&gt;
 // - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library&lt;br /&gt;
 // - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor&lt;br /&gt;
 &lt;br /&gt;
 #include &amp;quot;DHT.h&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 #define DHTPIN D2     // Digital pin connected to the DHT sensor&lt;br /&gt;
 // Feather HUZZAH ESP8266 note: use pins 3, 4, 5, 12, 13 or 14 --&lt;br /&gt;
 // Pin 15 can work but DHT must be disconnected during program upload.&lt;br /&gt;
 &lt;br /&gt;
 // Uncomment whatever type you're using!&lt;br /&gt;
 #define DHTTYPE DHT11   // DHT 11&lt;br /&gt;
 //#define DHTTYPE DHT22   // DHT 22  (AM2302), AM2321&lt;br /&gt;
 //#define DHTTYPE DHT21   // DHT 21 (AM2301)&lt;br /&gt;
 &lt;br /&gt;
 // Connect pin 1 (on the left) of the sensor to +5V&lt;br /&gt;
 // NOTE: If using a board with 3.3V logic like an Arduino Due connect pin 1&lt;br /&gt;
 // to 3.3V instead of 5V!&lt;br /&gt;
 // Connect pin 2 of the sensor to whatever your DHTPIN is&lt;br /&gt;
 // Connect pin 3 (on the right) of the sensor to GROUND (if your sensor has 3 pins)&lt;br /&gt;
 // Connect pin 4 (on the right) of the sensor to GROUND and leave the pin 3 EMPTY (if your sensor has 4 &lt;br /&gt;
pins)&lt;br /&gt;
 // Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor&lt;br /&gt;
 // Initialize DHT sensor.&lt;br /&gt;
 // Note that older versions of this library took an optional third parameter to&lt;br /&gt;
 // tweak the timings for faster processors.  This parameter is no longer needed&lt;br /&gt;
 // as the current DHT reading algorithm adjusts itself to work on faster procs.&lt;br /&gt;
 DHT dht(DHTPIN, DHTTYPE); &lt;br /&gt;
 &lt;br /&gt;
 void setup() {&lt;br /&gt;
   Serial.begin(9600);&lt;br /&gt;
   Serial.println(F(&amp;quot;DHTxx test!&amp;quot;));&lt;br /&gt;
 &lt;br /&gt;
   dht.begin();&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void loop() {&lt;br /&gt;
   // Wait a few seconds between measurements.&lt;br /&gt;
   delay(2000);&lt;br /&gt;
&lt;br /&gt;
   // Reading temperature or humidity takes about 250 milliseconds!&lt;br /&gt;
   // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)&lt;br /&gt;
   float h = dht.readHumidity();&lt;br /&gt;
   // Read temperature as Celsius (the default)&lt;br /&gt;
   float t = dht.readTemperature();&lt;br /&gt;
   // Read temperature as Fahrenheit (isFahrenheit = true)&lt;br /&gt;
   float f = dht.readTemperature(true);&lt;br /&gt;
 &lt;br /&gt;
   // Check if any reads failed and exit early (to try again).&lt;br /&gt;
   if (isnan(h) || isnan(t) || isnan(f)) {&lt;br /&gt;
     Serial.println(F(&amp;quot;Failed to read from DHT sensor!&amp;quot;));&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
   // Compute heat index in Fahrenheit (the default)&lt;br /&gt;
   float hif = dht.computeHeatIndex(f, h);&lt;br /&gt;
   // Compute heat index in Celsius (isFahreheit = false)&lt;br /&gt;
   float hic = dht.computeHeatIndex(t, h, false);&lt;br /&gt;
 &lt;br /&gt;
   Serial.print(F(&amp;quot;Humidity: &amp;quot;));&lt;br /&gt;
   Serial.print(h);&lt;br /&gt;
   Serial.print(F(&amp;quot;%  Temperature: &amp;quot;));&lt;br /&gt;
   Serial.print(t);&lt;br /&gt;
   Serial.print(F(&amp;quot;°C &amp;quot;));&lt;br /&gt;
   Serial.print(f);&lt;br /&gt;
   Serial.print(F(&amp;quot;°F  Heat index: &amp;quot;));&lt;br /&gt;
   Serial.print(hic);&lt;br /&gt;
   Serial.print(F(&amp;quot;°C &amp;quot;));&lt;br /&gt;
   Serial.print(hif);&lt;br /&gt;
   Serial.println(F(&amp;quot;°F&amp;quot;));&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>