Photoreflector (1) having a light emitting element (12) and a light receiving element (13) mounted on a substrate (11), a translucent resin (15) for sealing each of these elements, and a light shielding resin (2) Or a translucent cover material (20) arranged to face the light receiving / emitting part of the photoreflector (1), and between the light emitting element (12) and the light receiving element (13). A light shielding wall (2a) was formed from the light shielding resin (2), and a ridge (2b) was formed which was connected to the light shielding wall (2a) and narrowed the light emitting surface above the light emitting element (12).基板(11)上に実装された発光素子(12)及び受光素子(13)、これらの素子を各々封止する透光性樹脂(15)、並びに遮光性樹脂(2)を有するフォトリフレクタ(1)と、あるいはさらにフォトリフレクタ(1)の受発光部に面して配置された透光性のカバー材(20)と、を備え、発光素子(12)と受光素子(13)との間に遮光性樹脂(2)で遮光壁(2a)を形成するとともに、遮光壁(2a)に連結し発光素子(12)上方の発光面を狭窄する庇(2b)を形成した。