Thin films create layers of P-N junctions that allow the translation of light into the movement of electrons. Once electrons begin moving in this system, their patterns can be converted into a digital photo or harnessed as solar power. Some sensors use constant beam sources to detect variances between the source, and the sensor.