<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kalpataru Dash on Medium]]></title>
        <description><![CDATA[Stories by Kalpataru Dash on Medium]]></description>
        <link>https://medium.com/@kalpataru7165?source=rss-eeef1feca08f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*m68UG6UKpNdD8tO2</url>
            <title>Stories by Kalpataru Dash on Medium</title>
            <link>https://medium.com/@kalpataru7165?source=rss-eeef1feca08f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 04:56:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kalpataru7165/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Air Quality Analysis using ThingSpeak]]></title>
            <link>https://medium.com/ieee-ras-vit/air-quality-analysis-using-thingspeak-dd41b9421a04?source=rss-eeef1feca08f------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd41b9421a04</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[air-quality-monitoring]]></category>
            <category><![CDATA[iot-platform]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Kalpataru Dash]]></dc:creator>
            <pubDate>Thu, 26 Nov 2020 09:18:21 GMT</pubDate>
            <atom:updated>2020-11-26T09:18:21.630Z</atom:updated>
            <content:encoded><![CDATA[<p>I have always wondered how does the health app on our phone tracks our activity like walking, running, sleeping, calories intake, etc., and then come up with either a diet plan or displaying a status of our overall health as fit, obese, or unhealthy, etc. Recently I found out that all of it is done using specific data analysis tools like MATLAB and due to my project I figured out how.</p><p>So coming to the main point of interest that is the Air quality monitoring and analysis using ThingSpeak. This project deals with collecting the data from the sensors in the hardware portion and then sending it to ThingSpeak.</p><h3>The Hardware Model:</h3><p>The model consists of a gas sensor a Node MCU(ESP8266), MQ135, and DHT11 sensors. The node MCU is a microcontroller that is used for establishing a connection between the sensors and computer. The MQ135 retrieves the air quality values and the DHT11 collects the data for temperature and humidity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*QprrTvvVJTDYF1v2PRhDEg.jpeg" /><figcaption>Hardware Model</figcaption></figure><h3>Arduino IDE:</h3><p>This is where the crucial part begins. We have to code the node MCU so that the data flows into ThingSpeak for further research. First I went ahead defining the sensor pins, and the Node MCU was set up to connect to the WiFi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*0CfiIKejZbySf4q9ctrdHQ.jpeg" /><figcaption>Initial Setup and Definition</figcaption></figure><p>In addition to initializing the sensors and the node MCU, there is a line that shows the API Key, this key is specific to unique to every user and it is obtained from the ThingSpeak login. Here the Write API key is used. Here is where you find it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57g2ej2NGFbBMF95lyRJEQ.png" /><figcaption>API KEY</figcaption></figure><p>After all this, we send the data to ThingSpeak, which makes a real-time graph out of each attribute like the PPM, Temperature, etc. These fields are defined via the following lines of codes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*E7DO70qEBwJc_jIv91etaQ.jpeg" /><figcaption>Defining Fields for Specific Graphs</figcaption></figure><p>To send the value to ThingSpeak the node MCU takes 15 seconds so we give a delay command to synchronize with the time delay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*LTJRlh2bh8144PWY0YK0-g.jpeg" /><figcaption>The Delay Command Line</figcaption></figure><h3>ThingSpeak:</h3><p>Then we go to ThingSpeak using the Url: <a href="https://thingspeak.com/"><strong><em>thinkspeak.com</em></strong></a>. ThinkSpeak is a Mathworks venture to collect data in the cloud and then analyze it using MATLAB. Here we start with our data process and manipulation.</p><p>Due to our Arduino code, the data pushed from the sensor gives us real-time graphs in different fields in our ThingSpeak channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*aQtBv5Mz0o0yfrq9sG5S2g.jpeg" /><figcaption>Real-Time Graph for PPM</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*6Aqijv7KZb4TaXRhvEm5Ag.jpeg" /><figcaption>Real-Time Graph for Humidity</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*vGScAk1VrIq81kpJNQNT8w.jpeg" /><figcaption>Real-Time Graph for Temperature</figcaption></figure><h3>MATLAB Analysis:</h3><p>Now we move ahead to the main part where I had a hard time but while coming to the end I realized it wasn’t so tough after all. It just takes time when done for the first time. This feather in the cap was the MATLAB analysis code. This code takes the data and puts it in a visual standpoint for users to get a clearer image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*tWQDVz205SfSDGhgIbJW9A.jpeg" /><figcaption>The MATLAB Code</figcaption></figure><p>I have explained the in very step as comments. The code in its entirety is taking the sensor values and predicting whether the air around us is safe to breathe or not.</p><h3>ThingSpeak Visualization:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BItSuFq5lk21eDjQjsRkxA.jpeg" /><figcaption>The Visual Prediction</figcaption></figure><p>This is how the result looked like. With a metric UI that displays the values of PPM and the quality is displayed along with the graph.</p><p>All the essential information and the code files are also present in my GitHub repository, do take a look:</p><p><a href="https://github.com/kalpatarudash/Air_Quality_monitoring/"><em>https://github.com/kalpatarudash/Air_Quality_monitoring/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd41b9421a04" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ieee-ras-vit/air-quality-analysis-using-thingspeak-dd41b9421a04">Air Quality Analysis using ThingSpeak</a> was originally published in <a href="https://medium.com/ieee-ras-vit">IEEE-RAS VIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>