<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>error in dht11 sensor with nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101317/error-in-dht11-sensor-with-nrf52832</link><description>hello, 
 i am using dht11 and nrf52832DK, 
 and i am using sample example from ncs SDK 2.4.0 https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/sensor/dht, 
 and i have also change overlayfile and add this, 
 / { dht11 { compatible = &amp;quot;aosong,dht</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jun 2023 13:07:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101317/error-in-dht11-sensor-with-nrf52832" /><item><title>RE: error in dht11 sensor with nrf52832</title><link>https://devzone.nordicsemi.com/thread/433703?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 13:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:270a459e-47e7-4130-937d-0436f9f8820d</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;No worries, thank you for elaborating&lt;/p&gt;
&lt;p&gt;In the sensor sample you link boards/nrf52dk_nrf52832.overlay you see&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	dht22 {
		compatible = &amp;quot;aosong,dht&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		dio-gpios = &amp;lt;&amp;amp;gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
		dht22;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;By first replacing &lt;em&gt;dht22{&amp;nbsp;&lt;/em&gt;with&amp;nbsp;&lt;em&gt;dht11{&lt;/em&gt;&amp;nbsp;you&amp;#39;ve created a new device. Then by not matching the item inside of the device you state that there are two devices so it is looking for a dht22 while you have it defined as a dht11.&lt;/p&gt;
&lt;p&gt;In addition, the sensor sample uses the dht22 meaning that the configuration might not be valid for the dht11 sensor.&amp;nbsp;So simply changing 22 with 11 might not work. You will need to investigate closer to see the requirement, what it is compatible with etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I recommend you to have a look at&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/lessons/lesson-2-reading-buttons-and-controlling-leds/"&gt;https://academy.nordicsemi.com/lessons/lesson-2-reading-buttons-and-controlling-leds/&lt;/a&gt;&amp;nbsp;(and the other topics) to learn more about device tree and how to configure it as well as investigate the resources mentioned in the guide. And I would recommend you to have a look at&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/index.html&lt;/a&gt;&amp;nbsp;to see more details about how to use the device tree as well as also have a look at the Zephyr community discord found under Technical resources at&amp;nbsp;&lt;a href="https://www.zephyrproject.org/"&gt;https://www.zephyrproject.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1688044006725v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error in dht11 sensor with nrf52832</title><link>https://devzone.nordicsemi.com/thread/433683?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 12:28:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54ad34c8-f09a-4a80-b0c2-55714401efcf</guid><dc:creator>gautam_joshi</dc:creator><description>&lt;p&gt;hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sorry for that,&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/sensor/dht"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/sensor/dht&lt;/a&gt;&amp;nbsp;this is the link i want to share,&lt;/p&gt;
&lt;p&gt;and when i try to replce dht22 with dht11 it show build error that this&amp;nbsp;&lt;strong&gt;Property not mentioned in &amp;quot;aosong,dht&amp;quot;.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;then i also try with remove dht11 than again i got&amp;nbsp;&lt;strong&gt;&lt;span dir="ltr"&gt;Sensor fetch failed: -5&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;this error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error in dht11 sensor with nrf52832</title><link>https://devzone.nordicsemi.com/thread/433677?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 12:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d68fa170-2709-4eab-8048-43722589d942</guid><dc:creator>AHaug</dc:creator><description>[quote user="gautam_joshi"]i also try to remove that still i get the same error,[/quote]
&lt;p&gt;Remove what? You need to be more descriptive in what you change and please refer to links and documentation that you have been investigating by linking them.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error in dht11 sensor with nrf52832</title><link>https://devzone.nordicsemi.com/thread/433676?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 12:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c8033e5-df53-4522-9d67-64be3517b29e</guid><dc:creator>gautam_joshi</dc:creator><description>&lt;p&gt;hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;i also try to remove that still i get the same error and i test sensor with Arduino it works perfectly.&lt;br /&gt;and when i try to debug i found that in dht.c file in this&amp;nbsp;&lt;strong&gt;dht_measure_signal_duration&lt;/strong&gt; function i got error,but don&amp;#39;t understand what was happen there.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error in dht11 sensor with nrf52832</title><link>https://devzone.nordicsemi.com/thread/433672?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 12:08:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d86fca63-5cef-4b78-9646-2c315e340ee2</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;-5 means that no devices are found. You have added dht11 at the top while you state that the device are a dht22 at the bottom of the item.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try changing it from dht22 to dht11&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>