Iduino SE042 User guide

IDUINO for maker’s life
User Manual
for
DS18B20 Temperature Sensor for Arduino(SE042)
1 Introduction
Temperature measuring range: -55 ~ +125 Temperature measurement accuracy: 0.5 Resolution adjustment range:9-12byte Working voltage: DC 5V
www.openplatform.cc
IDUINO for maker’s life
Pin
Description
S
Digital output pin
V
Power pin
G
Ground
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
Loading...
+ 1 hidden pages