Arduino and Windows Forms based building security system using ultrasonic, flame, and PIR sensor concepts.
Building Security System Project is a bachelor project for monitoring basic building safety conditions with sensor-based detection. The Arduino sketch reads flame and ultrasonic sensor data, sends status values through the serial port, and a C# Windows Forms application displays the fire status and distance reading.
The project demonstrates embedded systems, serial communication, sensor monitoring, and a simple desktop dashboard for a security system prototype.
- Detection module: Reads sensor data from the Arduino board.
- Fire alarm module: Uses the flame sensor reading to trigger LED and buzzer alerts.
- Distance monitoring module: Uses an ultrasonic sensor to calculate distance.
- Desktop monitoring module: Reads Arduino serial output in a Windows Forms application.
- Documentation module: Includes project report and presentation files.
- Noor Uddin
- Rahul
- Jannatun Ferdous
- Arduino board
- Ultrasonic sensor
- Flame sensor
- PIR sensor, as described in the project concept
- LED
- Buzzer
- Breadboard
- Jumper wires
- USB cable
- Arduino IDE
- Visual Studio with .NET Framework desktop development support
- .NET Framework 4.5.2
- Windows OS
- Arduino sketch:
src/arduino/BuildingSecuritySystem/BuildingSecuritySystem.ino - Windows Forms app:
src/windows-app/ProjectFinal.sln
The Windows Forms app currently reads serial data from COM3 at 9600 baud.
- Open
src/arduino/BuildingSecuritySystem/BuildingSecuritySystem.inoin the Arduino IDE. - Connect the sensors, LED, and buzzer to the configured Arduino pins.
- Upload the sketch to the Arduino board.
- Open
src/windows-app/ProjectFinal.slnin Visual Studio. - Confirm the Arduino is connected to
COM3, or update the port inForm1.cs. - Run the Windows Forms application.
- Click the application button to read the latest serial data.
| Component | Arduino Pin |
|---|---|
| LED | 2 |
| Flame sensor | A2 |
| Buzzer | 13 |
| Ultrasonic trigger | 9 |
| Ultrasonic echo | 10 |
Hardware prototype:
Application and output screenshots:
Building-Security-System-Project/
├── src/
│ ├── arduino/
│ │ └── BuildingSecuritySystem/
│ │ └── BuildingSecuritySystem.ino
│ └── windows-app/
│ ├── ProjectFinal.sln
│ └── ProjectFinal/
├── docs/
│ ├── Final-Presentation.pptx
│ ├── Project-Report.docx
│ └── Topic-Presentation.pptx
├── output/
│ ├── hardware-front.jpg
│ ├── hardware-side.jpg
│ ├── output-1.jpg
│ ├── output-2.jpg
│ └── output-3.jpg
├── archive/
│ ├── FinalProject.zip
│ └── ProjectFinal-VU.zip
├── LICENSE
├── .gitignore
└── README.md
This is an Arduino and Windows Forms hardware project, so it does not use pytest.
Recommended checks:
- Upload the Arduino sketch and verify serial output at
9600baud. - Trigger the flame sensor and confirm the LED, buzzer, and
Highserial status. - Move an object in front of the ultrasonic sensor and confirm the distance value changes.
- Run the Windows Forms app and confirm it reads from the correct COM port.
- Open the Visual Studio solution and build it in Debug mode.
Suggested GitHub topics:
arduino building-security security-system ultrasonic-sensor flame-sensor pir-sensor c-sharp windows-forms embedded-systems bachelor-project
Noor Uddin — noor.cs2@yahoo.com
This project is licensed under the MIT License. See the LICENSE file for details.




