Question: Step 2 : Code the program a . Create the constant int variables for Arduino pin i . e . , input and output. b

Step 2: Code the program
a. Create the constant int variables for Arduino pin i.e., input and output.
b. Set the delay for the LEDs
c. Set the pin HIGH to turn the LED on, and LOW to turn off. Between the HIGH and LOW, include a time delay of 0 second.
d. Set the PIR to its corresponding state to detect motion.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!