Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Internet of Things with Arduino Cookbook

You're reading from   Internet of Things with Arduino Cookbook Build exciting IoT projects using the Arduino platform

Arrow left icon
Product type Paperback
Published in Sep 2016
Publisher Packt
ISBN-13 9781785286582
Length 188 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Marco Schwartz Marco Schwartz
Author Profile Icon Marco Schwartz
Marco Schwartz
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Connecting an Arduino to the Web 2. Cloud Data Monitoring FREE CHAPTER 3. Interacting with Web Services 4. Machine-to-Machine Interactions 5. Home Automation Projects 6. Fun Internet of Things Projects 7. Mobile Robot Applications Index

Cloud smoke detector


In several countries around the world, it is not mandatory to install a smoke detector inside your home. In this recipe, we are going to build our own smoke detector that will automatically send you alerts when smoke is detected in your home.

Getting ready

For this recipe, you are going to need a smoke detector, based on the MQ-2 gas sensor. This is the component that I used for this project:

Let's now see how to assemble this project. First, place the Arduino board on the breadboard. Then, connect the + pin of the sensor to Arduino VCC, the – pin of the sensor to GND, and finally the remaining sensor pin to A0. This is the final result:

We can now test the sensor. Indeed, we need to calibrate it so we know what is the output of the sensor when no smoke is detected. For that, I simply used the default sketch AnalogReadSerial given with the Arduino IDE. Upload...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image