Powered by RioRand advanced technology RioRand(TM) PIR Body Movement detect Sensor Module--arduino compatible This PIR Sensor Switch Module detects the Infrared Rays released by human body motion within the detection area (6 Meters/20 feet). PIR Sensor: A PIR Sensor is a Passive Infrared Sensor which controls the switching on/off when it detects a moving target. The PIR Sensor senses the motion of a human body by the change in surrounding ambient temperature when a human body passes across. Delay Time Adjustable: 5 seconds to 18 Minutes. Once the motion is seized it sends a "low" digital value to the through the digital IO port of Sensor Shield. Demo code: int ledPin = 13; int switchPin = 2; int value = 0; void setup() { pinMode(ledPin, OUTPUT); pinMode(switchPin, INPUT); } void loop() { value = digitalRead(switchPin); if (HIGH == value) { digitalWrite(ledPin, HIGH); } else { digitalWrite(ledPin, LOW); } }
|