A micromirror element is configured such that a mirror body is arranged via a support on a wiring substrate on which a pair of mirror drive electrodes and a light detection unit are arranged. A mirror is constituted of a mirror frame and a movable mirror swayably supported by the mirror frame. A light transmitting hole is formed at the center of the movable mirror. Light passing through the light transmitting hole is detected by the light detection device.