Patent 11307690 was granted and assigned to Kyocera Corporation on April, 2022 by the United States Patent and Trademark Office.
Provided are an electronic device, a program, and a control method capable of improving detection accuracy. An electronic device includes a proximity sensor, a ranging sensor, and a controller configured to switch a sensor to be operated between the proximity sensor and the ranging sensor in accordance with the distance between an object to be detected and the electronic device.