This tutorial describes how you can turn on a light when motion is detected, just like those outdoor motion-sensing lights do, and all without writing a single line of code.
(https://savagecircuits.com/wp-content/uploads/2013/11/PIR-Triggered-Relay-Circuits_00.jpg)
CLICK HERE TO GO TO THIS TUTORIAL ON THE SAVAGE///CIRCUITS WEBSITE (https://savagecircuits.com/pir-triggered-relay-circuits/)