In this post, using a temperature sensor DS18S20 and an Arduino Ethernet Shield, we will build a thermometer that can be read in the local network, and that will show the current temperature and the maximum and minimum temperature. First, we need to have the library ‘One Wire’ in Arduino which is necessary to use the sensor. You can download it here. You can find some help here for installing it, in case you need.
We will need a 4.7kΩ resistor for the DS18S20 connection. The way to connect it, is shown in the following image. The code we will use is the following one:
After the code is loaded in Arduino, a web, like the one in the image, will be shown when we enter the IP of the Ethernet Shield.