An electronic apparatus (100, 200, 300) comprising: a light-emitting diode array (111, 211, 311, 411, 551, 651) configured to transmit light beams having different wavelengths; a photodiode (121, 221, 321, 421, 561, 661) configured to receive reflected light beams having different wavelengths and measure intensities of the received light beams; a display (190, 290, 390, 490, 520, 620); and a processor (131, 231, 331, 431, 571, 671) 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 (100, 200, 300) 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 (111, 211, 311, 411, 551, 651) configured to transmit light beams having different wavelengths; a photodiode (121, 221, 321, 421, 561, 661) configured to receive reflected light beams having different wavelengths and measure intensities of the received light beams; a display (190, 290, 390, 490, 520, 620); and a processor (131, 231, 331, 431, 571, 671) 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 (100, 200, 300) 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 (100, 200, 300) 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.