Authorized Online Retailers:


1 Overview

Smoke Detectors are very useful in detecting smoke or fire in buildings, and so are the important safety parameters. It sensible to to flammable gas: Alcohol, and Methane etc. The voltage that the sensor outputs change according to the smoke/gas level that exists in the atmosphere. The sensor outputs a voltage that is proportional to the concentration of smoke/gas. In other words, the relationship between voltage and gas concentration is as following:

In this DIY Lesson, we’ll learn how to monitor the smoke detector remotely.

2 Hardware Preparation

UNO R3 board 1
Ethernet Shield W5100 1
USB cable 1
Gas sensor module 1
Jumper wires several
Breadboard 1

3 Hardware connection

Connect the Gas detector sensor with UNO as following diagram:

UNO Board Gas detector sensor

4 Add new Device

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

Choose: Sensors->”Generic”

Click Analog Input, setting the datasheet as followed:

Please Note: If V1 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.

In your dashboard, click “Step 1:Sketch File”, the sample sketch will be displayed,  in this example,we creat a new sketch, please download from:

Copy and paste the sketch into Arduino IDE ,please remember to use your own authentication token. Upload to your Uno board, then click “Setp 2 :Add Sensor”, you will find the smoke sensors was added on your dashboad:

Once the smoke sensor detected any smoke the value will change.