Skip to Content
Practical Internet of Things with JavaScript
book

Practical Internet of Things with JavaScript

by Arvind Ravulavaru
December 2017
Intermediate to advanced
296 pages
5h 56m
English
Packt Publishing
Content preview from Practical Internet of Things with JavaScript

Raspberry Pi and DHT11

Refer to the following table:

Raspberry Pi number - pin name

Sensor name - pin number

3 - GPIO2

DHT11 - Data

 

All grounds and all 3.3V are connected to a common point.

Once we have connected the sensors as shown previously, we will write the code needed to interface with the sensors.

Before we go further, we are going to copy the entire Chapter 2, IoTFW.js - I, and Chapter 3, IoTFW.js - II, code into another folder named chapter4.

The chapter4 folder should look as shown here:

.├── api-engine│ ├── package.json│ └── server├── broker│ ├── certs│ └── index.js├── desktop-app│ ├── app│ ├── freeport.js│ ├── index.css│ ├── index.html│ ├── index.js│ ├── license│ ├── package.json│ ├── readme.md│ └── server.js ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driving JavaScript Applications

Test-Driving JavaScript Applications

Venkat Subramaniam
Web Caching and Replication

Web Caching and Replication

Michael Rabinovich, Oliver Spatscheck

Publisher Resources

ISBN: 9781788292948Supplemental Content