© Neil Cameron 2019
Neil CameronArduino Appliedhttps://doi.org/10.1007/978-1-4842-3960-5_3

3. Sensors

Neil Cameron1 
(1)
Edinburgh, UK
 

Sensors can be connected to the Arduino to measure aspects of the environment with sensor information displayed on the serial monitor or on the serial plotter. The Arduino can perform an instruction depending on the sensor signal being above or below a given threshold, such as turning on a light when a room is dark. This chapter describes several sensors with accompanying sketches to demonstrate uses of the sensors. In subsequent chapters, projects include one or more sensors, so it is useful to have all the sensors described in one chapter.

Temperature Sensor

The LM35DZ is a precision temperature sensor with an operating ...

Get Arduino Applied: Comprehensive Projects for Everyday Electronics 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.