<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PM2.5 Air Quality Kit (PMSA003 + SHT20) - Arduino IDE - Cannot read temperature and humidity]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am struggling with an annoying issue.<br />
I've just put my hands on an AirQuality Kit. It came with a pre-flashed app, that correctly showed values (the temperature was way hight, but I understand that this is a know fact).<br />
After playing with UIFlow and nanoFramework, due to some issues I was unable to solve, I returned to the Arduino IDE.</p>
<p dir="auto">I have uploaded an app from GIT  (for the PM2.5) but it does not show the temperature any more:<br />
<a href="https://github.com/m5stack/M5Stack/blob/master/examples/Modules/PM2.5_PMSA003/PM2.5_PMSA003.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/blob/master/examples/Modules/PM2.5_PMSA003/PM2.5_PMSA003.ino</a></p>
<p dir="auto">Checking the source code, I noticed the:<br />
#define SLAVE_ADDRESS                         0x40</p>
<p dir="auto">However, when I run a scan on the i2c bus, on my m5Stack, I see these ids:<br />
<em>44</em><br />
<em>75</em><br />
<em>80</em><br />
<em>C4</em><br />
<em>F5</em></p>
<p dir="auto">So, I tried 0x40, but no luck. Also, other strange things happen in some situations:<br />
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.<br />
Core 1 register dump:<br />
PC      : 0x400d15fa  PS      : 0x00060730  A0      : 0x800d1713  A1      : 0x3ffb1f30<br />
A2      : 0x3ffc01a4  A3      : 0x3ffc0640  A4      : 0x00000000  A5      : 0x3ffc0640</p>
<p dir="auto">This is the KIT: <a href="https://docs.m5stack.com/en/base/pm2.5" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/base/pm2.5</a></p>
<p dir="auto">Is there some place from where I can get the source code for the app that was originally on the device?</p>
]]></description><link>https://community.m5stack.com/topic/5678/pm2-5-air-quality-kit-pmsa003-sht20-arduino-ide-cannot-read-temperature-and-humidity</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 20:42:04 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5678.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Sep 2023 10:41:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PM2.5 Air Quality Kit (PMSA003 + SHT20) - Arduino IDE - Cannot read temperature and humidity on Thu, 28 Sep 2023 14:30:12 GMT]]></title><description><![CDATA[<p dir="auto">It works!!<br />
Thank you for the suggestion <a class="plugin-mentions-user plugin-mentions-a" href="/user/gavin67890" aria-label="Profile: gavin67890">@<bdi>gavin67890</bdi></a>!<br />
The temperature is about 6 over and the humidity is 10% less than what my desk station is showing me, but I am glad that the hardware is ok.<br />
Now, to inspect the Python code and see where is the problem.<br />
<img src="/assets/uploads/files/1695909439290-20230928_164927_resize_resize-resized.jpg" alt="0_1695909425730_20230928_164927_resize_resize.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Also, one important aspect I was missing: the GitHub code was trying to read a <strong>SHT20</strong> while the PM2.5 (K023-B) has a <strong>SHT30</strong>.</p>
]]></description><link>https://community.m5stack.com/post/22353</link><guid isPermaLink="true">https://community.m5stack.com/post/22353</guid><dc:creator><![CDATA[dumitru]]></dc:creator><pubDate>Thu, 28 Sep 2023 14:30:12 GMT</pubDate></item><item><title><![CDATA[Reply to PM2.5 Air Quality Kit (PMSA003 + SHT20) - Arduino IDE - Cannot read temperature and humidity on Thu, 28 Sep 2023 13:31:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gavin67890" aria-label="Profile: gavin67890">@<bdi>gavin67890</bdi></a> Excellent idea! I will try that. Thank you!</p>
]]></description><link>https://community.m5stack.com/post/22351</link><guid isPermaLink="true">https://community.m5stack.com/post/22351</guid><dc:creator><![CDATA[dumitru]]></dc:creator><pubDate>Thu, 28 Sep 2023 13:31:49 GMT</pubDate></item><item><title><![CDATA[Reply to PM2.5 Air Quality Kit (PMSA003 + SHT20) - Arduino IDE - Cannot read temperature and humidity on Thu, 28 Sep 2023 13:12:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/dumitru" aria-label="Profile: dumitru">@<bdi>dumitru</bdi></a>,</p>
<p dir="auto">Maybe from the UIFlow examples?</p>
<p dir="auto"><img src="/assets/uploads/files/1695906737478-screenshot-2023-09-28-at-14.11.27-resized.png" alt="0_1695906730748_Screenshot 2023-09-28 at 14.11.27.png" class=" img-fluid img-markdown" /> e</p>
]]></description><link>https://community.m5stack.com/post/22350</link><guid isPermaLink="true">https://community.m5stack.com/post/22350</guid><dc:creator><![CDATA[gavin67890]]></dc:creator><pubDate>Thu, 28 Sep 2023 13:12:49 GMT</pubDate></item></channel></rss>