Authorized Online Retailers:

AMAZON
AMAZON-jp
amzuk

1) Overview

In Lesson 3, we learned how to  read remote Photoresistor sensor data to your browser.  As farmer or agriculture scientist, in addition to get the brightness data of your greenhouse, you also need to know the temperature/humidity of your plant field.
In this lesson, we will use a DHT 11 sensor to read remote environment temperature and humidity data through browser.

2)Hardware preparation

Parts Quantity
Arduino UNO 1
Ethernet shield W5100 1
USB cable 1
DHT11 1
200 ohm Resistor 1
Jumper wires several
Bread board 1

3) Hardware connection

Arduino+W5100 DHT11
5V VCC
GND GND
D2 DATA  via 200 ohm resistor

4)Software Installation

Step A) If you have DHT11 library, please skip this step. If you have not installed DHT11 library, please download the zip file from https://osoyoo.com/wp-content/uploads/samplecode/DHT.zip , then in your Arduino IDE ->Sketch->Include Library->Add .ZIP Library and select the DHT.zip file you just downloaded, and upload it to Arduino.


Step B) Download sample code from  https://osoyoo.com/driver/ethernet_iot/lesson4/w5100-lesson4.zip, unzip the file and double click the w5100-lesson4.ino file, load the sketch into Arduino IDE.

Open your Serial Monitor, you can see your router will assign an IP address to your Arduino   as following:

In above example, 10.0.0.45 is the IP address of my Arduino.
Now use another computer or your cell phone’s  browser to visit url : http://10.0.0.45
Your browser will show following result: