To obtain a blood sugar level accurately, the location of a blood-vessel part is specified by using a first wavelength at which absorption by hemoglobin, which is a component unique to blood, is high, and data of light absorbance measured by using a second wavelength at which absorption by glucose is high is separated into a blood-vessel part and other parts.