A light-receiving element having a light-receiving portion is formed on a chip
surface. A digital circuit element, an analog circuit element and a circuit adjusting
element are provided for cooperatively processing a detection signal produced from
the light-receiving element. And, a light-shielding film is provided for selectively
setting a light-receiving region on the chip surface.