A photoelectric pulse sensor includes a light emitting device and a light receiving device disposed on a main surface of a circuit board with a predetermined distance apart from each other. A housing is provided to which the circuit board is attached and including a pair of openings respectively corresponding to the light emitting and receiving devices, with the housing including a light shield disposed at least between the pair of openings. The light shield includes a light shield member that is disposed on a surface of the housing facing the circuit board. The light shield member has a light shielding characteristics and flexibility. The light shield member is deformed by coming into contact with the circuit board when the circuit board is attached to the housing.