PURPOSE: To avoid power consumption resulting from the useless driving of a sensor in an electronic clock having a case composed of an upper and a lower case and the sensor.
CONSTITUTION: An electronic equipment with a sensor is composed to be controlled by CPU 1, and an optical sensor 18 provided on the upper face of a lower case detects the opening and closing of an upper case, and altitude measurement utilizing a pressure sensor 15 is frequently carried out according to the result of the above detection, and whether detailed display on a digital display section 22 is necessary for the result of measurement or not is judged, and when the detailed display is unnecessary, the interval of timing for the altitude measurement is lengthened, or the measurement is stopped.