Patent ID: 7162352

Claim:
An electronic apparatus comprising: a main body; an acceleration sensor provided in the main body; a temperature sensor provided in the main body; offset value storage unit configure to store a reference temperature and an offset value corresponding to the reference temperature; acceleration computing unit configure to correct an output value from the acceleration sensor with an offset value stored in the offset value storage unit so as to obtain an acceleration of the main body; temperature difference determining unit configure to determine whether or not an absolute value of a temperature difference between a measurement temperature measured by the temperature sensor and the reference temperature stored in the offset value storage unit exceeds a predetermined value; rest determining unit configure to determine whether or not the main body is at rest based on an output value from the acceleration sensor, when the temperature difference determining unit determines that the absolute value of the temperature difference exceeds a predetermined value; level determining unit configure to determine whether or not the main body is on the level based on the output value from the acceleration sensor and the offset value stored in the offset value storage unit, when the rest determining unit determines that the main body is at rest; and offset value updating unit for store a new offset value corresponding to an output value outputted from the acceleration sensor in the offset value storage unit and storing the measurement temperature in the offset value storage unit as a new reference temperature, when the level determining unit determines that the main body is on the level.