(IJEECS) International Journal of Electrical, Electronics and Computer Systems. Vol: 14 Issue: 2, June 2013 ©IJEECS StartCheck if webcam is connectedStart Recording the videoSave the Recorded the videoYESNO Fig. 6 Flow chart of software program d) Saving of the video: The program is capable to recording the live video of the scene when the intruder is in its detection range. The captured video is saved in the media file format in the computer. The files are saved with the file name of date and time of the detection. This avoids the files replacement and it is easy for a person to find the time of an intruder in the area. The videos are recorded only when there are intruder otherwise the PIR sensor remains idle; the webcam and lamp circuit remains incomplete. This saves memory space of the recording system and power consumption. III. SYSTEM TESTING AND ANALYSIS A. System Testing The system prototype was tested in the lab, where the normal temperature ranges from 300 K to 308 K. The software was kept running in the laptop and an intruder was let to come into the detection range of the PIR sensor. Fig. 7 Program running when there is no intruder Fig. 8 shows the program checking if the webcam is connected i.e. if it is turned ON. It keeps checking until it detects the webcam. A friend was made to enter the detection range of the PIR sensor. The lamp and the webcam got turned ON since PIR sensor got activated and generated an output which actually actuated lamp and webcam as shown in Fig. 9.