![](/html/34/3448/344866b6b5934ad6ebf54882f2e8f39174ef759afb311b98a3295954cb934b22/bg1.png)
IDUINO for maker’s life
User Manual
for
DS18B20 Temperature Sensor for Arduino(SE042)
1 Introduction
There are so many kinds of temperature sensor module for arduino, different
temperature sensor chip has different sense range and specification, this module use
the DS18B20 chip, the feature as below:
Temperature measuring range: -55 ~ +125 ℃
Temperature measurement accuracy: 0.5 ℃
Resolution adjustment range:9-12byte
Working voltage: DC 5V
www.openplatform.cc
![](/html/34/3448/344866b6b5934ad6ebf54882f2e8f39174ef759afb311b98a3295954cb934b22/bg2.png)
IDUINO for maker’s life
2 Pinout
3. Example
This example shows you the environment temperature in the serial window.
The connection as below:
V---------5V
G---------Ground
S---------D10
********Code Begin********
//Include libraries
#include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into pin 2 on the Arduino
#define ONE_WIRE_BUS 2
// Setup a oneWire instance to communicate with any OneWire devices (not just
Maxim/Dallas temperature ICs)
www.openplatform.cc