Advertisement

Sensors

  • Neil Cameron
Chapter

Abstract

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.

Copyright information

© Neil Cameron 2019

Authors and Affiliations

  • Neil Cameron
    • 1
  1. 1.EdinburghUK

Personalised recommendations