Running the project

We will need to have the serial console open when we run the code to see the output.

Once the code is uploaded and running, wave your hand near the sensor, and you should see the Motion Detected message is printed to the console, as shown in the following screenshot:

Now on to 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.