Add the following snippet to your HTML:
The solar lamp is charged during the day, and they started to pass. Suitable for yards and corridors.
Read up about this project on
The solar lamp is charged during the day, and they started to pass.
Suitable for yards and corridors.
//Zeljko Cvijanovic // HC-SR501 Motion Detector // Relay int relPin = 4; // Relay int pirPin = 7; // Input for HC-S501 int pirValue; void setup() { pinMode(relPin, OUTPUT); pinMode(pirPin, INPUT); digitalWrite(relPin, LOW); } void loop() { pirValue = digitalRead(pirPin); digitalWrite(relPin, pirValue); }
Comments