In this tutorial we learn to interface a temperature sensor DS18B20 with the Raspberry Pi. The DS18B20 is widely used temperature sensor, mainly at places where harsh operating environments are involved like chemical industries, mine plants etc.