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
Raspberry Pi Zero W Wireless Projects

You're reading from   Raspberry Pi Zero W Wireless Projects Go mobile with the world's most popular microprocessor

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781788290524
Length 240 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Vasilis Tzivaras Vasilis Tzivaras
Author Profile Icon Vasilis Tzivaras
Vasilis Tzivaras
Arrow right icon
View More author details
Toc

Home automation

To complete home automation, we will use our Raspberry Pi Zero W board and a DHT11 temperature and humidity sensor. The DHT11 sensor is able to test both temperature and humidity. It is pretty easy to set it up and we will do this using a library. First of all, let's start connecting things together. The DHT11 sensor consists of only three pins, one for the ground, one for the 5V and the last one for the signal. We have to carefully connect them to the appropriate pins in our Raspberry Pi Zero W board. In the following image, you can find the pinout of the board:

If this project is brand new and not an add-on, all pins should be available; so, connect the ground pin of the sensor to pin 9. Next, connect the 5V pin of the sensor to pin 2, and finally, connect the signal pin of the sensor to pin 7. It is important to be connected to pin 7, since we will later...

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