int IRSensor = 8; // connect ir sensor to arduino pin 2 int LED = 11; // connect Led to arduino pin 13 ...
Once motion is detected, the sensor sends a HIGH signal to the microcontroller, which can be used to trigger a response such as turning on an LED or activating an alarm. In this experiment, the PIR ...