In today’s world, security plays a major role in day-to-day life. In general, sensors are used to detect an intruder in secure places. The main problem with the sensor arises because of its specifications, limitations in aspect of temperature and humidity etc., In this paper, webcam is used instead of sensor to detect the moving object using myRIO. The motion of objects is detected by computing the difference between the images captured by the webcam. The detection process is achieved using LabVIEW software and myRIO