Patent ID: 11893959
Assignee: SAMSUNG ELECTRONICS CO., LTD.
Field: Measurement (Instruments)
Classification: CPC G | IPC G

Claim 17:
18. 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:
while the first infrared ray is output, identify a first sensing value according to the second infrared ray, output from the first light-receiving element,
based on that the identified first sensing value satisfies a first specified condition, identify a second sensing value output from the second light-receiving element,
based on the identified second sensing value, correct at least one first sensing value output from the first light-receiving element, and
based on the corrected at least one first sensing value, identify whether a proximate object exists.