CPC G09G 5/10 (2013.01) [G01J 5/10 (2013.01); G06F 3/011 (2013.01); G01J 5/022 (2013.01); G09G 2360/145 (2013.01)] | 20 Claims |
1. An electronic device comprising:
a display having at least one hole disposed in at least a part thereof such that light from an outside can be transmitted therethrough;
a light-emitting element disposed under the display and configured to output a first infrared ray to the outside;
a first light-receiving element disposed under the display at a position corresponding to the at least one hole, and configured to receive a second infrared ray transmitted from the outside;
a second light-receiving element disposed under the display at a position where light from the outside is shielded; and
at least one processor,
wherein the at least one processor is configured to,
based on that a first sensing value according to the second infrared ray, output from the first light-receiving element, satisfies a first specified condition, while the first infrared ray is output:
based on that a second sensing value output from the second light-receiving element does not satisfy a second specified condition, identify that a proximate object exists, and
based on that the second sensing value satisfies the second specified condition, identify that the proximate object does not exist.
|