An electronic device (100; 200; 400; 900; 1000; 1100) comprising: a display (150; 260); a plurality of components internal to the electronic device; a first sensor (115a; 240) configured to sense a temperature of at least one component of the plurality of components and generate a first signal based on the sensed temperature; a second sensor (115b; 240; 410, 415, 420, 425, 430, 435, 440, 445, 450; 460; 465) configured to detect at least one of an approach state of an object to the electronic device and a contact state of the object with the electronic device and generate a second signal based on at least one of the approach state of the object and the contact state of the object; and at least one processor (120; 920; 1020; 1120), the processor being configured to: in response to detecting by the second sensor the approach state of the object or the contact state of the object, detect whether a location of the approach state of the object or the contact state of the object falls within a predefined vicinity of at least one component from among the plurality of components by comparing locations of the plurality of components with the location of the approach state of the object or the contact state of the object, alter a reference temperature based on whether the location of the approach state of the object or the contact state of the object falls within the predefined vicinity of the internal at least one component, and if the sensed temperature is higher than the altered reference temperature, modify the operation of the at least one component by operating the at least one component in a limited mode while operating other components among the plurality of components in a normal mode. a display (150; 260); a plurality of components internal to the electronic device; a first sensor (115a; 240) configured to sense a temperature of at least one component of the plurality of components and generate a first signal based on the sensed temperature; a second sensor (115b; 240; 410, 415, 420, 425, 430, 435, 440, 445, 450; 460; 465) configured to detect at least one of an approach state of an object to the electronic device and a contact state of the object with the electronic device and generate a second signal based on at least one of the approach state of the object and the contact state of the object; and at least one processor (120; 920; 1020; 1120), the processor being configured to: in response to detecting by the second sensor the approach state of the object or the contact state of the object, detect whether a location of the approach state of the object or the contact state of the object falls within a predefined vicinity of at least one component from among the plurality of components by comparing locations of the plurality of components with the location of the approach state of the object or the contact state of the object, alter a reference temperature based on whether the location of the approach state of the object or the contact state of the object falls within the predefined vicinity of the internal at least one component, and if the sensed temperature is higher than the altered reference temperature, modify the operation of the at least one component by operating the at least one component in a limited mode while operating other components among the plurality of components in a normal mode. in response to detecting by the second sensor the approach state of the object or the contact state of the object, detect whether a location of the approach state of the object or the contact state of the object falls within a predefined vicinity of at least one component from among the plurality of components by comparing locations of the plurality of components with the location of the approach state of the object or the contact state of the object, alter a reference temperature based on whether the location of the approach state of the object or the contact state of the object falls within the predefined vicinity of the internal at least one component, and if the sensed temperature is higher than the altered reference temperature, modify the operation of the at least one component by operating the at least one component in a limited mode while operating other components among the plurality of components in a normal mode.