In this illustration we will going to wire the W5100 Ethernet shield with Arduino UNO, DHTXX Humidity Sensor along with ThingSpeak an AJAX Graphical Representation of the data coming from the Sensor which is connected to our MCU and push the data to ThingSpeak Server, See below the diagram.
The diagram below works only by port forwarding for running thingspeak locally on your machine you need to install Ruby 2, RubyGems, Rail 4, GitHub, and DBMS (MySQL) running on Linux OS, the best way to test this is by installing virtual box running with Ununto Operating System , please follow this link.
Thngspeak fresh installation on Ubuntu Distro.
> sudo apt-get upgrade
> sudo apt-get -y install build-essential mysql-server mysql-client libmysqlclient-dev libxml2-dev libxslt-dev git-core curl rubygems
>\curl -sSL https://get.rvm.io | bash -s stable
>rvm install 2.1
>git clone https://github.com/iobridge/thingspeak.git
>cd thingspeak
>bundle install
>cp config/database.yml.example config/database.yml
>rake db:create
>rake db:schema:load
>rails server
Thningspeak will now be running at http://localhost:3000/
As you can see the above the Ethernet shield is connected to the router and then from the router it communicates to the ThingSpeak IOT Server.
Below are the wiring diagram and steps how to used ThingSpeak IOT Server.
Wiring the DHTXX Humidity sensor module is quite simple just place the data pin to Analog Pin 0 AO on our MCU board then supply with 5v DC and place the ground the common ground which is on our Arduino Board.
Sketch Code
[crayon-673fbd6a241ca242444435/]