The basics: photoelectric sensors detect the distance, absence or presence of an object. This is done using a beam of light and is ideal when sensing long distances or when the object your are detecting is non-metal. Popular types include through beam, retroreflective and diffused and they can be used to detect almost all kinds of materials.