O'Reilly logo

Mastering Arduino by Jon Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required