Today I will discuss about use the digital temperature module with the use of 18B20 (Programmable 1-Wire digital Thermometer) so we can measure the temperature in our environment. The following are the things that we need. Arduino board, the digital temperature 18B20 module, jumper wires and breadboard.
Information about digital temperture 18B20 module
This module reports degrees in Celsius from -55 to 125 celsius degrees, with +- 0.5 accuracy/precision. It has 3 pins, namely: VCC, D0 and GND. it can be used as thermometer.
This sensor has 1-wire interface, in which only one pin will be required to communicate with the Arduino to read the temperature of one or more sensors. Each 18B20 has a unique 64 bit serial code, which allows multiple sensors to function on the same 1-Wire bus (data line). The 18B20 temperature sensor can derive power directly from the data line ("parasite power"), in which you may not need an external power source. In our module, you just connect the VCC pin to the 5V of Arduino. This temperature sensor can be used to temperature monitoring systems in your home, buildings, machine, equipment and other process control systems.
Arduino board (Uno or any compatible)
DS18B20 temp sensor module (if you have no module, and you have just a sensor, you need to get 4.7k ohms to be connected between signal pin and 5V pin)
The OneWire library is typically used for a one-wire components like digital temperature sensor. The Dallas library is used to simplify and to shorter the code for processing the output of the temperature sensor. Make sure all these libraries are included in your Arduino IDE to compile it successfully.