You're probably looking for a [CCD camera](https://en.wikipedia.org/wiki/Charge-coupled_device). This is essentially an array of photodiodes, giving a voltage corresponding to the amount of light incident on each pixel. By reading out this video you can find the region in which the finger breaks the beam.