Here is a Wikipedia article giving basic operational details – importantly it mentions employing two leds, one red at 660nm and one infra-red at 940nm wave-length.
There must be more detailed articles available on-line – but at least the basic principle of operation is explained in the Wiki article.