Authorized Online Retailers:


1 Overview

This lesson,  we’ll show how to get environment temperature data fromm DS18b20 temperature sensor from browser or smart phone

2 Hareware Preparation

UNO R3 board 1
Ethernet Shield W5100 1
USB cable 1
DS18B20 1
Jumper wires several
Breadboard 1

3 Hardware connection

Connect the DS18B20 temperature sensor with UNO as following diagram:

Arduino UNO DS18B20
5V Middle
D2 S

4 Add new device

Log in Cayenne IOT platform, Add new…->Device/Widget

Choose :Sensors->”Temperature”

Choose DS18B20

Change the datasheet as followed:

Please note:  If V9 pin was used by other widgets, you can select other pins. and change the VIRTUAL PIN in sketch to the pin number you have selected.

Click “Step 1:Sketch File”,the sample sketch will be displayed,copy and paste the sketch into Arduino IDE. The onewire and DallasTemperature are required to run the sketch, If you have not installed these libraries yet, you can installed them from Arduino IDE library manager

You can use this method to add another arduino library by the same way.

Choose the Board type Arduino Uno and correct Port, upload the sketch to Uno board, in your Cayenne dashboard click”Step 2 :Add Actuators” then you should see the DS18bB20 was added on your dashboard: