An electronic apparatus comprising: a light-emitting diode array configured to transmit light beams having different wavelengths; a photodiode configured to receive reflected light beams having different wavelengths and measure intensities of the received light beams; a display ; and a processor configured to: control the light-emitting diode array to transmit the light beams having the different wavelengths toward an object, calculate reflectance of each light beam based on a ratio of the intensity of the light beam transmitted from the light-emitting diode array and the intensity of the light beam that is reflected on the object and received by the photodiode, calculate, at different times, a distance from the electronic apparatus to the object based on a time difference between a time at which the light-emitting diode array transmits a light beam and a time at which the photodiode receives the light beam, identify a state of the object based on the reflectances of the light beams and the change in distance to the object, and display information about the state of the object on the display, wherein identifying the state of the object includes identifying a degree of rottenness of the object or a degree of cooking of the object. a light-emitting diode array configured to transmit light beams having different wavelengths; a photodiode configured to receive reflected light beams having different wavelengths and measure intensities of the received light beams; a display ; and a processor configured to: control the light-emitting diode array to transmit the light beams having the different wavelengths toward an object, calculate reflectance of each light beam based on a ratio of the intensity of the light beam transmitted from the light-emitting diode array and the intensity of the light beam that is reflected on the object and received by the photodiode, calculate, at different times, a distance from the electronic apparatus to the object based on a time difference between a time at which the light-emitting diode array transmits a light beam and a time at which the photodiode receives the light beam, identify a state of the object based on the reflectances of the light beams and the change in distance to the object, and display information about the state of the object on the display, control the light-emitting diode array to transmit the light beams having the different wavelengths toward an object, calculate reflectance of each light beam based on a ratio of the intensity of the light beam transmitted from the light-emitting diode array and the intensity of the light beam that is reflected on the object and received by the photodiode, calculate, at different times, a distance from the electronic apparatus to the object based on a time difference between a time at which the light-emitting diode array transmits a light beam and a time at which the photodiode receives the light beam, identify a state of the object based on the reflectances of the light beams and the change in distance to the object, and display information about the state of the object on the display, wherein identifying the state of the object includes identifying a degree of rottenness of the object or a degree of cooking of the object. <EOS>