# Smart Laser Tripwire Security System
A responsive home security automation layout built on an Arduino Uno framework. The microcontroller monitors state inputs from a physical control pushbutton to toggle security arming, processing photoresistor voltage changes to instantly sound a panic siren and strobe visual threat alerts if an invisible beam threshold is broken.
## Hardware Architecture & Pin Map
### Input Sensors & Control Controls
| Component | Device Pin | Arduino Pin | Wire Color | Operational Mode |
|:---|:---|:---|:---|:---|
| **LDR (Photoresistor)** | VCC | 5V | Red | System Power |
| **LDR (Photoresistor)** | AO | A0 | Green | Analog Light Level Telemetry |
| **LDR (Photoresistor)** | GND | GND | Black | Common Ground |
| **Pushbutton** | 1:R | D2 | Purple | Digital Toggle Switch Interrupt |
| **Pushbutton** | 2:R | GND | Black | Common Ground |
### Output Alarms & Status Indicators
| Component | Device Pin | Arduino Pin | Wire Color | Operational Mode |
|:---|:---|:---|:---|:---|
| **Green LED (Status)** | a (Anode) | D11 | Green | Standby Mode Indicator |
| **Green LED (Status)** | c (Cathode)| GND | Black | Common Ground |
| **Red LED (Alert)** | a (Anode) | D12 | Red | Alarm / Armed Strobe Indicator |
| **Red LED (Alert)** | c (Cathode)| GND | Black | Common Ground |
| **Piezo Buzzer** | 1 | D13 | Yellow | Audio Frequency Pulse Output |
| **Piezo Buzzer** | 2 | GND | Black | Common Ground |
---
## Complete Verification & Operational Check
Once you apply the code configuration and refresh your workspace canvas using your browser tools, follow these verification execution steps to test the automation system:
### 1. Standby Verification (Disarmed State)
* Start the virtual environment by clicking the green **Start Simulation** play icon.
* Confirm that the **Green LED turns ON** and the **Red LED stays OFF**.
* Check the Serial Monitor terminal panel at the bottom to see it print:
```text
=== SYSTEM INITIALIZED: DISARMED ===