© Peter Hoddie and Lizzie Prader 2020
P. Hoddie, L. PraderIoT Development for ESP32 and ESP8266 with JavaScripthttps://doi.org/10.1007/978-1-4842-5070-9_6

6. Hardware

Peter Hoddie1  and Lizzie Prader1
(1)
Menlo Park, CA, USA
 

Sensors and actuators are integral parts of nearly every IoT product. Sensors gather data from the environment, such as the temperature, humidity, and light levels, and translate it into electrical signals that a microcontroller or other system can react to. Actuators do the opposite: they take electrical signals and translate them into physical actions, such as turning a motor or a light on or playing a sound.

Just as there are different networking protocols that define how data is shared over the network, there are different ...

Get IoT Development for ESP32 and ESP8266 with JavaScript: A Practical Guide to XS and the Moddable SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.