For example, when two pixelsform a set, the signal from one of the pixels may be used as a subject signal based on light reflected by a subject when light is emitted from a light source such as a light-emitting diode and applied to the subject to detect an object.