Optical Sensors are used for contact-less detection, counting or positioning of parts. Optical sensors can be either internal or external. External sensors gather and transmit a required quantity of light, while internal sensors are most often used to measure the bends and other small changes in direction.