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 ...