An electronic apparatus comprising: a sensor comprising a plurality of pixels arranged in a matrix form of rows and columns, wherein the plurality of pixels are divided into pixels of a first region and pixels of a second region based on pixels of a predetermined row; a first light source configured to irradiate a first light; a second light source configured to irradiate a second light in a direction different from the first light; and a processor configured to:based on first and second reflected lights being received by the sensor as the first and second lights are reflected by an object, identify reflected light of the first light and reflected light of the second light among the first and the second reflected lights based on a position of first pixels receiving the first reflected light and a position of second pixels receiving the second reflected light among the plurality of pixels, wherein the processor is further configured to: upon determining that there is no matching part among columns of the plurality of pixels that received the first reflected light and the second reflect light, calculate a distance between the first light source and an object and a distance between the second light source and an object by applying a second calculation method to each of the first and second reflected lights, upon determining that the first reflected light and the second reflected light are received in the second region and the columns of the plurality of pixels that received the first reflected light and the second reflect light in the second region match at least in part, calculate a first distance by applying a first calculation method and calculate a thw second distance by applying the second calculation method, and identify whether the object (10, 20) reflecting the first light and the object (10, 20) reflecting the second light are same or different objects based on the calculated first and second distances. a sensor comprising a plurality of pixels arranged in a matrix form of rows and columns, wherein the plurality of pixels are divided into pixels of a first region and pixels of a second region based on pixels of a predetermined row; a first light source configured to irradiate a first light; a second light source configured to irradiate a second light in a direction different from the first light; and a processor configured to:based on first and second reflected lights being received by the sensor as the first and second lights are reflected by an object, identify reflected light of the first light and reflected light of the second light among the first and the second reflected lights based on a position of first pixels receiving the first reflected light and a position of second pixels receiving the second reflected light among the plurality of pixels, wherein the processor is further configured to: upon determining that there is no matching part among columns of the plurality of pixels that received the first reflected light and the second reflect light, calculate a distance between the first light source and an object and a distance between the second light source and an object by applying a second calculation method to each of the first and second reflected lights, upon determining that the first reflected light and the second reflected light are received in the second region and the columns of the plurality of pixels that received the first reflected light and the second reflect light in the second region match at least in part, calculate a first distance by applying a first calculation method and calculate a thw second distance by applying the second calculation method, and identify whether the object (10, 20) reflecting the first light and the object (10, 20) reflecting the second light are same or different objects based on the calculated first and second distances. upon determining that there is no matching part among columns of the plurality of pixels that received the first reflected light and the second reflect light, calculate a distance between the first light source and an object and a distance between the second light source and an object by applying a second calculation method to each of the first and second reflected lights, upon determining that the first reflected light and the second reflected light are received in the second region and the columns of the plurality of pixels that received the first reflected light and the second reflect light in the second region match at least in part, calculate a first distance by applying a first calculation method and calculate a thw second distance by applying the second calculation method, and identify whether the object (10, 20) reflecting the first light and the object (10, 20) reflecting the second light are same or different objects based on the calculated first and second distances.