<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Arduino%2FC3%2FSending-data-to-the-cloud-using-IoT-devices%2FEnglish</id>
		<title>Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Arduino%2FC3%2FSending-data-to-the-cloud-using-IoT-devices%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English&amp;action=history"/>
		<updated>2026-05-13T15:03:59Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English&amp;diff=54868&amp;oldid=prev</id>
		<title>Nirmala Venkat at 07:57, 22 February 2021</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English&amp;diff=54868&amp;oldid=prev"/>
				<updated>2021-02-22T07:57:17Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 07:57, 22 February 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 174:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 174:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Code Files:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Code Files:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;||&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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;color:black; 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;* The files used in this tutorial are available in the'''Code files '''link on this tutorial page.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;* The files used in this tutorial are available in the '''Code files '''link on this tutorial page.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Please download and extract them&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Please download and extract them&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Make a copy and then use them while practising&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Make a copy and then use them while practising&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nirmala Venkat</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English&amp;diff=54861&amp;oldid=prev</id>
		<title>Nirmala Venkat at 10:01, 18 February 2021</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English&amp;diff=54861&amp;oldid=prev"/>
				<updated>2021-02-18T10:01:14Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:01, 18 February 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 457:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 457:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Go to the '''Downloads''' folder and open the '''CSV''' file.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Go to the '''Downloads''' folder and open the '''CSV''' file.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Click on the OK button at the bottom of the window.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the '''temperature''' and '''humidity data''' that is collected from the '''sensor'''. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the '''temperature''' and '''humidity data''' that is collected from the '''sensor'''. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nirmala Venkat</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English&amp;diff=54756&amp;oldid=prev</id>
		<title>Nancyvarkey at 02:59, 30 January 2021</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English&amp;diff=54756&amp;oldid=prev"/>
				<updated>2021-01-30T02:59:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English&amp;amp;diff=54756&amp;amp;oldid=54748&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English&amp;diff=54748&amp;oldid=prev</id>
		<title>Nirmala Venkat: Created page with &quot;  {| border=&quot;1&quot; |- || Visual Cue || Narration |- || Slide 1: || Welcome to the''' '''Spoken Tutorial on '''Sending data to the cloud using IoT devices.''' |- ||Slide 2: Learni...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Arduino/C3/Sending-data-to-the-cloud-using-IoT-devices/English&amp;diff=54748&amp;oldid=prev"/>
				<updated>2021-01-21T09:18:31Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;  {| border=&amp;quot;1&amp;quot; |- || Visual Cue || Narration |- || Slide 1: || Welcome to the&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;Spoken Tutorial on &amp;#039;&amp;#039;&amp;#039;Sending data to the cloud using IoT devices.&amp;#039;&amp;#039;&amp;#039; |- ||Slide 2: Learni...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| Visual Cue&lt;br /&gt;
|| Narration&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 1:&lt;br /&gt;
|| Welcome to the''' '''Spoken Tutorial on '''Sending data to the cloud using IoT devices.'''&lt;br /&gt;
|-&lt;br /&gt;
||Slide 2:&lt;br /&gt;
Learning Objectives&lt;br /&gt;
&lt;br /&gt;
|| In this tutorial, we will learn how to&lt;br /&gt;
* Establish connection between '''ESP8266-01''' and '''DHT11 '''sensor&lt;br /&gt;
* Collect '''Temperature''' and '''Humidity''' values given by '''DHT11''' sensor&lt;br /&gt;
* Use '''ThingSpeak''' platform to store and visualize sensor readings and&lt;br /&gt;
* Download the data in '''CSV''' file&lt;br /&gt;
|-&lt;br /&gt;
||Slide 3:&lt;br /&gt;
&lt;br /&gt;
Pre-Requisites&lt;br /&gt;
||To follow this tutorial, you should have a basic knowledge of:&lt;br /&gt;
&lt;br /&gt;
* '''Wireless Communication '''&lt;br /&gt;
* '''C or C++ '''programming language&lt;br /&gt;
* '''ThingSpeak''' account and&lt;br /&gt;
* Write '''API''' Key&lt;br /&gt;
&lt;br /&gt;
If not, then go through the relevant '''Arduino''' spoken tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
||Slide 4:&lt;br /&gt;
&lt;br /&gt;
System Requirements&lt;br /&gt;
||To record this tutorial, here I am using:&lt;br /&gt;
* '''Ubuntu Linux 16.04''' OS&lt;br /&gt;
* '''Arduino UNO''' board&lt;br /&gt;
* '''Arduino IDE'''&lt;br /&gt;
|-&lt;br /&gt;
||Slide 5:&lt;br /&gt;
&lt;br /&gt;
External Components&lt;br /&gt;
DHT11.jpg&lt;br /&gt;
&lt;br /&gt;
MB102 Power Supply.jpg&lt;br /&gt;
||We also require some external components such as&lt;br /&gt;
* '''DHT11 Sensor'''&lt;br /&gt;
* '''MB102 Breadboard Power Supply Module'''&lt;br /&gt;
|-&lt;br /&gt;
||ESP8266-01 WiFi Module.jpg &lt;br /&gt;
&lt;br /&gt;
Point to Tx Rx&lt;br /&gt;
|| * '''ESP8266-01 WiFi Module'''&lt;br /&gt;
Recall that we have learnt about the pins of '''ESP8266-01 WiFi '''module in the earlier tutorial.&lt;br /&gt;
* This wifi module is widely used for the development of '''IoT '''applications.&lt;br /&gt;
* It has a built-in '''System on Chip''' with integrated '''TCP/IP stack.'''&lt;br /&gt;
|-&lt;br /&gt;
||Slide 6:&lt;br /&gt;
MQTT Protocol&lt;br /&gt;
|| * We will be using the '''MQTT''' protocol to send data over the network.&lt;br /&gt;
* MQTT stands for '''Message Queuing Telemetry Transport.'''&lt;br /&gt;
* It is a simple messaging protocol, designed for devices with low bandwidth.&lt;br /&gt;
* We can read and publish data from sensors on the cloud.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
||We will see the circuit connection of''' DHT11 '''and''' WiFi '''module with '''Arduino'''.&lt;br /&gt;
|-&lt;br /&gt;
||Image '''DHT-Arduino.png'''&lt;br /&gt;
Image '''Data Pin-GPIO2.png''' &lt;br /&gt;
|| * Connect the '''VCC '''pin of the '''DHT11''' sensor to the 5V''' '''pin of Arduino.&lt;br /&gt;
* Connect the '''ground '''pin of the '''DHT11''' sensor to the ground pin of Arduino.&lt;br /&gt;
* Connect '''Data pin''' of '''DHT11''' sensor to '''GPIO2''' of '''ESP8266''' Module.&lt;br /&gt;
Note: &lt;br /&gt;
The '''ESP8266''' module works on 3.3V only.&lt;br /&gt;
Connecting it to 5V may '''damage''' the''' Wi-Fi''' module.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Next we will see how to set up the''' MB102 '''module on Breadboard.&lt;br /&gt;
|-&lt;br /&gt;
||'''MB102 folder:'''&lt;br /&gt;
MB102_setup1.jpg&lt;br /&gt;
||We need to use the 3.3V supply to power up the '''wifi''' module.&lt;br /&gt;
&lt;br /&gt;
Make sure that the yellow coloured jumpers in the module are fixed on the 3.3V and '''OFF''' Pins.&lt;br /&gt;
|-&lt;br /&gt;
|| MB102_setup2.jpg&lt;br /&gt;
|| Keep the white button of the module towards the right side of the breadboard as shown in the image.&lt;br /&gt;
|-&lt;br /&gt;
||&lt;br /&gt;
&lt;br /&gt;
MB102_setup3.jpg&lt;br /&gt;
&lt;br /&gt;
MB102_setup4.jpg&lt;br /&gt;
||There are pins in pairs at the bottom of the '''MB102''' module. &lt;br /&gt;
&lt;br /&gt;
Place these pins of the module on the power rails of the breadboard as shown in the image.&lt;br /&gt;
|-&lt;br /&gt;
||&lt;br /&gt;
MB102_setup5.jpg&lt;br /&gt;
||We can see a power jack point on the '''MB102''' module.&lt;br /&gt;
Plug in a '''9V-1A''' adapter in this power jack.&lt;br /&gt;
|-&lt;br /&gt;
|| MB102_setup6.jpg&lt;br /&gt;
|| To turn ON or OFF the '''MB102''' module, we have to press the white button.&lt;br /&gt;
|-&lt;br /&gt;
|| MB102_setup7.jpg&lt;br /&gt;
||When the green light is turned on, it means the module is switched on.&lt;br /&gt;
&lt;br /&gt;
Now the setup of the '''MB102''' module is completed.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us see the other circuit connections.&lt;br /&gt;
|-&lt;br /&gt;
||Image '''ESP-Power Supply Module 3.3V.png'''&lt;br /&gt;
Image '''ESP-Power Supply Module GND.png'''&lt;br /&gt;
Image '''RST-GND.png'''&lt;br /&gt;
Image '''GPIO0-GND.png'''&lt;br /&gt;
Image '''Rx-Tx Connection.png'''&lt;br /&gt;
|| * Connect '''VCC and CH_PD''' pins of '''ESP8266''' to 3.3V pin of '''MB102 power supply module'''.&lt;br /&gt;
* Connect '''GND''' pin of '''ESP8266''' to '''ground''' pin of '''MB102 '''power supply module.&lt;br /&gt;
* Connect the '''RST''' pin of '''ESP8266''' module to one end of the '''push button'''.&lt;br /&gt;
* This push button is used for resetting the '''WiFi''' module.&lt;br /&gt;
* Connect the other end of the push button to the '''ground '''terminal of '''Arduino'''&lt;br /&gt;
* Connect GPIO pin 0 of '''ESP8266''' module to ground.&lt;br /&gt;
* Connect the '''Tx pin''' of '''ESP8266''' to the '''Tx pin''' of the Arduino.&lt;br /&gt;
* Connect the '''Rx pin''' of '''ESP8266''' to the''' Rx pin''' of the Arduino.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||Slide 9:&lt;br /&gt;
&lt;br /&gt;
Live Setup&lt;br /&gt;
|| This is the live setup of the connection, as shown in the circuit diagram. &lt;br /&gt;
|-&lt;br /&gt;
||&lt;br /&gt;
 &lt;br /&gt;
|| Now we will write the program in '''Arduino IDE''' for interfacing '''WiFi module '''and''' DHT11 Sensor.'''&lt;br /&gt;
|-&lt;br /&gt;
||Slide:&lt;br /&gt;
&lt;br /&gt;
Code Files:&lt;br /&gt;
||&lt;br /&gt;
* Thefiles used in this tutorial are available in the'''Code Files '''link on this tutorial page.&lt;br /&gt;
* Please download and extract them  &lt;br /&gt;
* Make a copy and then use them while practising&lt;br /&gt;
|-&lt;br /&gt;
|| Open Arduino IDE &lt;br /&gt;
|| Open '''Arduino IDE'''. &lt;br /&gt;
|-&lt;br /&gt;
|| Narration&lt;br /&gt;
|| Connect your Arduino board to your PC.&lt;br /&gt;
|-&lt;br /&gt;
||&lt;br /&gt;
&lt;br /&gt;
Go to the Tools menu. Select '''port''' option.&lt;br /&gt;
Tools =&amp;gt; Port.&lt;br /&gt;
||First, we need to know the name of the port to which arduino is connected.&lt;br /&gt;
In the menu bar, go to the '''Tools''' menu. Select '''port''' option.&lt;br /&gt;
In my case, the port is '''ttyUSB0. '''Note down your port name.&lt;br /&gt;
Windows users can skip the steps below as the port is detected automatically.&lt;br /&gt;
|-&lt;br /&gt;
|| Open the'''terminal'''&lt;br /&gt;
|| Open the'''terminal''' by pressing'''Ctrl+Alt+t''' keys simultaneously.&lt;br /&gt;
|-&lt;br /&gt;
||&lt;br /&gt;
&lt;br /&gt;
Type,'''sudo chmod a+rw /dev/ttyUSB0'''&lt;br /&gt;
||Type, '''sudo space chmod space a+rw space slash dev slash ttyUSB0'''&lt;br /&gt;
In my case, the '''port''' name is '''ttyUSB0'''&lt;br /&gt;
You have to specify your '''port''' name.&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
Enter your '''password''' for the '''system''' and press '''Enter'''.&lt;br /&gt;
The above '''command''' gives '''read-write permission''' to the '''USB port.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Switch back to arduino IDE&lt;br /&gt;
|| Switch back to '''Arduino IDE.'''&lt;br /&gt;
|-&lt;br /&gt;
||Click File =&amp;gt; Preferences &lt;br /&gt;
&lt;br /&gt;
||Next we will configure the '''ESP8266 module''' to communicate. &lt;br /&gt;
&lt;br /&gt;
Click on the '''File''' menu. Select '''Preferences'''.&lt;br /&gt;
A new window will appear.&lt;br /&gt;
In the '''Settings''' tab, go to the '''Additional Boards Manager URLs '''section.&lt;br /&gt;
Add this '''json''' '''URL'''.&lt;br /&gt;
This will help to download '''ESP8266 WiFi module '''in''' Arduino IDE.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button at the bottom of the window.&lt;br /&gt;
|-&lt;br /&gt;
||Click Tools =&amp;gt; Board =&amp;gt; Boards Manager&lt;br /&gt;
||In the menu bar, click on the '''Tools''' menu and select '''Board'''.&lt;br /&gt;
Then select the '''Board Manager''' option.&lt;br /&gt;
A new window will appear.&lt;br /&gt;
In the top right, we can see a '''search tab'''.&lt;br /&gt;
Here, type '''ESP8266''' and press enter.&lt;br /&gt;
|-&lt;br /&gt;
||Select ESP8266 Community Module&lt;br /&gt;
Click on version drop down box&lt;br /&gt;
Click on '''install''' button&lt;br /&gt;
||Select '''ESP8266 by ESP8266 Community'''.&lt;br /&gt;
&lt;br /&gt;
In the version drop down box, select the '''latest version '''of the module.&lt;br /&gt;
&lt;br /&gt;
Click on the '''install '''button to install the module. &lt;br /&gt;
&lt;br /&gt;
Installation will take few minutes to complete. &lt;br /&gt;
&lt;br /&gt;
Wait until it is installed successfully.&lt;br /&gt;
|-&lt;br /&gt;
||Point to Installed button&lt;br /&gt;
&lt;br /&gt;
Click on the Close button&lt;br /&gt;
||The '''ESP8266''' module is now installed in the '''Arduino IDE'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Close''' button at the right bottom of the window.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Next, we need to download a''' DHT sensor''' library to successfully run the code.&lt;br /&gt;
|-&lt;br /&gt;
||Download Following Library in Arduino IDE.&lt;br /&gt;
||Click on the '''Sketch''' option.&lt;br /&gt;
&lt;br /&gt;
Select '''Include Library''' and then click on '''Manage Libraries'''.&lt;br /&gt;
A new window will open.&lt;br /&gt;
&lt;br /&gt;
Type '''Simple DHT''' on the search box.&lt;br /&gt;
&lt;br /&gt;
Select the latest version and install the '''Simple DHT by Winlin'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
||Make sure that the above steps are done successfully before proceeding further.&lt;br /&gt;
Click on the '''Close''' button at the right bottom of the window. &lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
||#include &amp;lt;SimpleDHT.h&amp;gt;&lt;br /&gt;
#include &amp;lt;WiFi.h&amp;gt;&lt;br /&gt;
String apiKey = &amp;quot;N9FEWDVPBUFUII32&amp;quot;; &lt;br /&gt;
&lt;br /&gt;
||We have included the '''DHT and ESP8266 '''libraries to the code.&lt;br /&gt;
&lt;br /&gt;
Here, we have to enter our channel '''Write API key '''which we generated already.&lt;br /&gt;
|-&lt;br /&gt;
||char *ssid = &amp;quot;Pratik&amp;quot;; &lt;br /&gt;
char *pass = &amp;quot;Pratikjb@&amp;quot;;&lt;br /&gt;
char* server = &amp;quot;api.thingspeak.com&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
||'''SSID''' is the '''name''' of the '''Wi-Fi''' module.&lt;br /&gt;
&lt;br /&gt;
Pass is the '''passcode '''to join the '''Wi-Fi''' network&lt;br /&gt;
&lt;br /&gt;
You have to give a unique ssid and password.&lt;br /&gt;
&lt;br /&gt;
This is the Thingspeak api server, where we will be uploading the data.&lt;br /&gt;
|-&lt;br /&gt;
||#define pinDHT11 2&lt;br /&gt;
&lt;br /&gt;
SimpleDHT11 dht11(pinDHT11);&lt;br /&gt;
&lt;br /&gt;
WiFiClient client;&lt;br /&gt;
&lt;br /&gt;
||Define the data pin of '''DHT11''' sensor connected to '''ESP8266''' module as shown here.&lt;br /&gt;
This code sets the DHT11 data pin.&lt;br /&gt;
This line of code creates a client to the specified IP address or server.&lt;br /&gt;
|-&lt;br /&gt;
||void setup()&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
Serial.println(&amp;quot;&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
Serial.println(&amp;quot;WiFi connected&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
||Type this code in the void setup function.&lt;br /&gt;
&lt;br /&gt;
Here, the baud rate is set to 115200 as the WiFi module works on 115200 baud rate.&lt;br /&gt;
&lt;br /&gt;
The connection is established with the '''ssid''' and password which we declared earlier.&lt;br /&gt;
&lt;br /&gt;
We will establish a connection between '''ThingSpeak server '''and''' ESP8266 WiFi module. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||&lt;br /&gt;
||Type this code in the void loop function.&lt;br /&gt;
&lt;br /&gt;
We have declared two variables for humidity and temperature.&lt;br /&gt;
&lt;br /&gt;
This will read the temperature and humidity values.&lt;br /&gt;
&lt;br /&gt;
First check whether the connection is established between the '''ThingSpeak cloud and WiFi module.'''&lt;br /&gt;
&lt;br /&gt;
Then the data including humidity, temperature and API keys will be sent to the server.&lt;br /&gt;
&lt;br /&gt;
Based on the API key value, the ThingSpeak server automatically selects the channel.&lt;br /&gt;
&lt;br /&gt;
This prints the data on the '''ThingSpeak''' server where the WiFi module will be connected.&lt;br /&gt;
&lt;br /&gt;
We are done with the required coding.&lt;br /&gt;
|-&lt;br /&gt;
||Click on the compile button to save the program&lt;br /&gt;
&lt;br /&gt;
||Let us compile and save the program.&lt;br /&gt;
&lt;br /&gt;
Click on the''' compile''' button to verify the''' program.'''&lt;br /&gt;
&lt;br /&gt;
A pop up window will appear to save the current program.&lt;br /&gt;
&lt;br /&gt;
Name the program as '''DHT11_IoT '''and click on the save button to save the program.&lt;br /&gt;
|-&lt;br /&gt;
||Tools =&amp;gt; Board =&amp;gt; Generic ESP8266 Module&lt;br /&gt;
&lt;br /&gt;
Select ESP8266 module to upload the program.&lt;br /&gt;
||Now, before uploading the program we have to select the '''ESP8266''' module.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Tools''' option and select '''board'''.&lt;br /&gt;
&lt;br /&gt;
Scroll down and select '''Generic ESP8266 Module'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Tools =&amp;gt; Reset Method = no dtr (aka ck).&lt;br /&gt;
||Next step is to select the '''Reset''' option. &lt;br /&gt;
&lt;br /&gt;
In the menu bar, select '''Tools'''. Go to the Reset''' Method'''.&lt;br /&gt;
&lt;br /&gt;
Select '''no dtr (aka ck).'''&lt;br /&gt;
&lt;br /&gt;
This will help to reset the wifi module manually.&lt;br /&gt;
|-&lt;br /&gt;
|| Tools =&amp;gt; Builtin LED = 1&lt;br /&gt;
||Next we need to set the built in LED of '''ESP8266 Module'''.&lt;br /&gt;
Again select '''Tools'''.&lt;br /&gt;
Go to the '''Builtin LED '''option. Set the''' Builtin LED''' to '''1.'''&lt;br /&gt;
|-&lt;br /&gt;
||Click on the upload button&lt;br /&gt;
&lt;br /&gt;
||Now click on the upload button to upload the current program on''' ESP8266-01. '''&lt;br /&gt;
We can see the program getting uploaded at the bottom of the screen.&lt;br /&gt;
Now the program has been uploaded successfully.&lt;br /&gt;
|-&lt;br /&gt;
||Rx-Tx Connection.png&lt;br /&gt;
|| After Uploading the code, disconnect the '''GPIO pin 0''' of '''ESP8266''' module from ground.&lt;br /&gt;
|-&lt;br /&gt;
||Slide:&lt;br /&gt;
&lt;br /&gt;
Working of '''ThingSpeak''' channel&lt;br /&gt;
||&lt;br /&gt;
* First, the DHT11 module will get connected to the WiFi network.&lt;br /&gt;
* It will read temperature and humidity data from the sensor.&lt;br /&gt;
* After a few seconds, these values will be uploaded to '''ThingSpeak''' channel&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
||Let's see the output on our channel created on '''ThingSpeak'''.&lt;br /&gt;
&lt;br /&gt;
Go to the '''ThingSpeak''' page.&lt;br /&gt;
&lt;br /&gt;
We can see a graph of temperature and humidity values from the DHT11 sensor.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Next, we will see how to export the current data of''' DHT11''' sensor.&lt;br /&gt;
|-&lt;br /&gt;
||&lt;br /&gt;
&lt;br /&gt;
Download the Data in CSV file&lt;br /&gt;
||Click on the '''Data Import/Export''' option on the GUI of your channel.&lt;br /&gt;
Scroll down to see the '''Export''' option on the left side&lt;br /&gt;
Select the time zone as shown here &lt;br /&gt;
Now Click on '''Download''' button&lt;br /&gt;
Click on the save button. &lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
||Let us open the downloaded CSV file.&lt;br /&gt;
Go to the '''Downloads''' folder and open the '''CSV''' file.&lt;br /&gt;
This is the temperature and humidity data that is collected from the sensor. &lt;br /&gt;
|-&lt;br /&gt;
||Slide 10:CSV File&lt;br /&gt;
&lt;br /&gt;
|| &lt;br /&gt;
* With the '''ThingSpeak''' platform, it is possible to fetch the device reading in CSV file.&lt;br /&gt;
* This is useful to do data analytics using R or Matlab.&lt;br /&gt;
* Go through the R Spoken tutorials for data analytics.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| This brings us to the end of this tutorial. Let us summarize. &lt;br /&gt;
|-&lt;br /&gt;
||Slide 11:&lt;br /&gt;
&lt;br /&gt;
Summary&lt;br /&gt;
||In this tutorial, we learnt to:&lt;br /&gt;
* Establish connection between '''ESP8266-01''' and '''DHT11 sensor'''&lt;br /&gt;
* Collect '''Temperature''' and '''Humidity''' values given by '''DHT11''' Sensor&lt;br /&gt;
* Use '''ThingSpeak''' platform to store and visualize sensor readings and&lt;br /&gt;
* Download the data in '''CSV''' file&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||Slide 12:&lt;br /&gt;
&lt;br /&gt;
About Spoken Tutorial project&lt;br /&gt;
||The video at the following link summarizes the Spoken Tutorial project.&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
||Slide 13:&lt;br /&gt;
&lt;br /&gt;
Spoken Tutorial workshops&lt;br /&gt;
||The''' Spoken Tutorial Project''' Team:* conducts workshops and&lt;br /&gt;
* gives certificates.&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
||Slide 14:&lt;br /&gt;
&lt;br /&gt;
Forum for specific questions&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
||Slide 15:&lt;br /&gt;
&lt;br /&gt;
Acknowledgement&lt;br /&gt;
|| The Spoken Tutorial project is funded by MHRD, Government of India.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
||This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay. &lt;br /&gt;
&lt;br /&gt;
This is Saurabh signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nirmala Venkat</name></author>	</entry>

	</feed>