Authorized Online Retailers:

Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

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
OSOYOO Basic board 1
Ethernet shield W5100 1
USB cable 1
DHT11 1
200 ohm Resistor 1
Jumper wires several
Bread board 1

3) Hardware connection

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/driver/DHT.zip , then in your  IDE ->Sketch->Include Library->Add .ZIP Library and select the DHT.zip file you just downloaded, and upload it to IDE.


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 IDE.

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

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