A light source section outputs optical flux having two types of wavelength, which are a short wavelength and a long wavelength, while the intensity is made variable. The output from the first light intensity detecting section in irradiating the optical flux having a short wavelength is compared with the output from the first light intensity detecting section in irradiating the optical flux having a long wavelength. A disappearance level near a point where the detected signal from the internal subject disappears is calculated. The first intensity of optical flux having a long wavelength is set to level higher than the disappearance level. Based on the output from the first light intensity detecting section obtained by the optical flux having a long wavelength of the first intensity, a subject inside the body to be detected is measured.