Components needed

We will need the following components for this chapter's project:

  • One Arduino Uno or compatible board
  • One HC-SR501 motion sensor
  • Jumper wires
  • For the challenge, you will need an LED
  • One breadboard
The breadboard is optional because you may connect the HC-SR501 motion sensor directly to the Arduino. You will need a breadboard to complete the challenge section of this chapter.

Get Mastering Arduino 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.