<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: DHT11 Sensor With Raspberry PI and Python	</title>
	<atom:link href="https://peppe8o.com/raspberry-pi-dht11-sensor/feed/" rel="self" type="application/rss+xml" />
	<link>https://peppe8o.com/raspberry-pi-dht11-sensor/</link>
	<description>Raspberry PI, Arduino and Electronics made simple</description>
	<lastBuildDate>Mon, 05 May 2025 07:48:54 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: peppe8o		</title>
		<link>https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-56303</link>

		<dc:creator><![CDATA[peppe8o]]></dc:creator>
		<pubDate>Mon, 05 May 2025 07:48:54 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=1491#comment-56303</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-56271&quot;&gt;Neil Stewart&lt;/a&gt;.

Thank you for your feedback, Neil!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-56271">Neil Stewart</a>.</p>
<p>Thank you for your feedback, Neil!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Neil Stewart		</title>
		<link>https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-56271</link>

		<dc:creator><![CDATA[Neil Stewart]]></dc:creator>
		<pubDate>Mon, 05 May 2025 00:10:38 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=1491#comment-56271</guid>

					<description><![CDATA[Thanks, 
I got it to work on a Zero and a 3A+.]]></description>
			<content:encoded><![CDATA[<p>Thanks,<br />
I got it to work on a Zero and a 3A+.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: peppe8o		</title>
		<link>https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-44398</link>

		<dc:creator><![CDATA[peppe8o]]></dc:creator>
		<pubDate>Mon, 27 Jan 2025 14:44:06 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=1491#comment-44398</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-44395&quot;&gt;Marc&lt;/a&gt;.

Great, many thanks for your feedback!

Best regards,
Giuseppe]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-44395">Marc</a>.</p>
<p>Great, many thanks for your feedback!</p>
<p>Best regards,<br />
Giuseppe</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Marc		</title>
		<link>https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-44395</link>

		<dc:creator><![CDATA[Marc]]></dc:creator>
		<pubDate>Mon, 27 Jan 2025 14:19:26 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=1491#comment-44395</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-44379&quot;&gt;peppe8o&lt;/a&gt;.

Hello PEPPE,

DHT22 works without modification of the config.txt 

Best regards
Marc]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-44379">peppe8o</a>.</p>
<p>Hello PEPPE,</p>
<p>DHT22 works without modification of the config.txt </p>
<p>Best regards<br />
Marc</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: peppe8o		</title>
		<link>https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-44379</link>

		<dc:creator><![CDATA[peppe8o]]></dc:creator>
		<pubDate>Mon, 27 Jan 2025 08:14:18 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=1491#comment-44379</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-44357&quot;&gt;Marc&lt;/a&gt;.

Hi Marc. I can&#039;t check as I don&#039;t have a DHT22 to test. For sure, you must use the proper dtoverlay parameter for dht22. Please let me know if works]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-44357">Marc</a>.</p>
<p>Hi Marc. I can&#8217;t check as I don&#8217;t have a DHT22 to test. For sure, you must use the proper dtoverlay parameter for dht22. Please let me know if works</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Marc		</title>
		<link>https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-44357</link>

		<dc:creator><![CDATA[Marc]]></dc:creator>
		<pubDate>Sun, 26 Jan 2025 21:39:11 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=1491#comment-44357</guid>

					<description><![CDATA[Works fine, exzellent.
Is this also working with DHT22 ?
Regards!]]></description>
			<content:encoded><![CDATA[<p>Works fine, exzellent.<br />
Is this also working with DHT22 ?<br />
Regards!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: truongkmt		</title>
		<link>https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-18831</link>

		<dc:creator><![CDATA[truongkmt]]></dc:creator>
		<pubDate>Thu, 06 Oct 2022 15:48:06 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=1491#comment-18831</guid>

					<description><![CDATA[Pi 3B OK, thank you]]></description>
			<content:encoded><![CDATA[<p>Pi 3B OK, thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: peppe8o		</title>
		<link>https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-18591</link>

		<dc:creator><![CDATA[peppe8o]]></dc:creator>
		<pubDate>Thu, 29 Sep 2022 16:41:38 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=1491#comment-18591</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-18470&quot;&gt;John Waza&lt;/a&gt;.

Hi John, your suggestion makes me think that starting the python script with a check at the running processes and killing the concurrent could improve the script&#039;s reliability. I&#039;ll try it in the following weeks. In the meanwhile, thank you for your feedback!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-18470">John Waza</a>.</p>
<p>Hi John, your suggestion makes me think that starting the python script with a check at the running processes and killing the concurrent could improve the script&#8217;s reliability. I&#8217;ll try it in the following weeks. In the meanwhile, thank you for your feedback!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: John Waza		</title>
		<link>https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-18470</link>

		<dc:creator><![CDATA[John Waza]]></dc:creator>
		<pubDate>Mon, 26 Sep 2022 00:47:16 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=1491#comment-18470</guid>

					<description><![CDATA[I avoid the &quot;unable to set line to input&quot;, by getting the GPIO to reset by killing, in my case, the libgpiod_pulsein64 linux process, which was still running after a ctrl-c/break.]]></description>
			<content:encoded><![CDATA[<p>I avoid the &#8220;unable to set line to input&#8221;, by getting the GPIO to reset by killing, in my case, the libgpiod_pulsein64 linux process, which was still running after a ctrl-c/break.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: peppe8o		</title>
		<link>https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-5109</link>

		<dc:creator><![CDATA[peppe8o]]></dc:creator>
		<pubDate>Sat, 25 Sep 2021 12:57:51 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=1491#comment-5109</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-5107&quot;&gt;alpha kavindu&lt;/a&gt;.

OK, this seems an error coming from your DHT sensor not giving back any reading.
Please, firstly check that connections are correctly wired.
If all the wiring is ok, then try changing following code:
&lt;code&gt;temperature_f = temperature_c * (9 / 5) + 32
humidity = dhtDevice.humidity
print(&quot;Temp: {:.1f} F / {:.1f} C    Humidity: {}% &quot;.format(temperature_f, temperature_c, humidity))&lt;/code&gt;
with this:
&lt;code&gt;
humidity = dhtDevice.humidity
if temperature_c is not None and humidity is not None
    temperature_f = temperature_c * (9 / 5) + 32
    print(&quot;Temp: {:.1f} F / {:.1f} C    Humidity: {}% &quot;.format(temperature_f, temperature_c, humidity))
else
    print(&quot;Reading Error&quot;)&lt;/code&gt;
Please note that in this comment area I can&#039;t write tabulations, so you need to add tab (or space) before 2nd, 3rd and 5th row.
In case of any problem, please write to me at giuseppe@peppe8o.com]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://peppe8o.com/raspberry-pi-dht11-sensor/#comment-5107">alpha kavindu</a>.</p>
<p>OK, this seems an error coming from your DHT sensor not giving back any reading.<br />
Please, firstly check that connections are correctly wired.<br />
If all the wiring is ok, then try changing following code:<br />
<code>temperature_f = temperature_c * (9 / 5) + 32<br />
humidity = dhtDevice.humidity<br />
print("Temp: {:.1f} F / {:.1f} C    Humidity: {}% ".format(temperature_f, temperature_c, humidity))</code><br />
with this:<br />
<code><br />
humidity = dhtDevice.humidity<br />
if temperature_c is not None and humidity is not None<br />
    temperature_f = temperature_c * (9 / 5) + 32<br />
    print("Temp: {:.1f} F / {:.1f} C    Humidity: {}% ".format(temperature_f, temperature_c, humidity))<br />
else<br />
    print("Reading Error")</code><br />
Please note that in this comment area I can&#8217;t write tabulations, so you need to add tab (or space) before 2nd, 3rd and 5th row.<br />
In case of any problem, please write to me at <a href="mailto:giuseppe@peppe8o.com">giuseppe@peppe8o.com</a></p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
