The sensor is a photo electric device that uses infrared light to detect the presence or absence of objects ,it is commonly used for automatic gates ,garage doors, security systems ,where it creates a safety barrier . The sensor consists of a transmitter that generates a n infrared beam and a receiver that detects interruption in that beam .