DIY Laser Tripwire Security System Using Arduino
The project consists of a laser module that continuously emits a beam aimed at a laser receiver sensor. When an object (such as a person) obstructs the laser, the receiver detects the interruption and triggers an alarm via a buzzer. This system is ideal for securing doorways, hallways, or any restricted area.
COMPONENTS REQUIRED
Arduino Uno
Laser LED Module
Laser Receiver Sensor Module
Buzzer
Jumper wires
Breadboard
Circuit Diagram
CODE
#define LASER_PIN 7
#define RECEIVER_PIN 8
#define BUZZER_PIN 9
void setup() {
pinMode(LASER_PIN, OUTPUT);
pinMode(RECEIVER_PIN, INPUT);
pinMode(BUZZER_PIN, OUTPUT);
digitalWrite(LASER_PIN, HIGH); // Laser ON
Serial.begin(9600);
}
void loop() {
int status = digitalRead(RECEIVER_PIN);
if (status == 1) { // If laser beam is blocked
Serial.println("⚠️ Intruder Detected!");
digitalWrite(BUZZER_PIN, HIGH);
} else {
Serial.println("✅ Area Secure");
digitalWrite(BUZZER_PIN, LOW);
}
delay(500);
}

















