An electronic device (101, 201, 400, 500) comprising: a camera (291, 405); a speaker (282, 410); a display (260, 415); a battery (296, 465, 565); a printed circuit board; a charging integrated circuit, IC, (460, 560) disposed on the printed circuit board to supply power to the battery; a communication circuit (220, 425) disposed on the printed circuit board to wirelessly communicate with an external device; a processor (120, 210, 480, 580) disposed on the printed circuit board and electrically connected to the camera, the speaker, the display, the battery, the charging IC, and the communication circuit; and a plurality of temperature sensors (435, 440, 535, 538, 540) disposed in regions adjacent to two or more of the camera, the speaker, the charging IC, the communication circuit, and the processor, wherein the processor is configured to: obtain (910, 920, 1010, 1020, 1110) temperature data using the plurality of temperature sensors; compute (930, 1030, 1120) a parameter associated with a temperature of the battery based on the temperature data; and restrict (940,1040-1060, 1130-1150) a function or performance of at least one of the camera, the speaker, the display, the charging IC, the communication circuit, and the processor to lower the temperature of the battery if, taking into account the number of times the battery has been charged, the parameter is determined to be within a specified range. a camera (291, 405); a speaker (282, 410); a display (260, 415); a battery (296, 465, 565); a printed circuit board; a charging integrated circuit, IC, (460, 560) disposed on the printed circuit board to supply power to the battery; a communication circuit (220, 425) disposed on the printed circuit board to wirelessly communicate with an external device; a processor (120, 210, 480, 580) disposed on the printed circuit board and electrically connected to the camera, the speaker, the display, the battery, the charging IC, and the communication circuit; and a plurality of temperature sensors (435, 440, 535, 538, 540) disposed in regions adjacent to two or more of the camera, the speaker, the charging IC, the communication circuit, and the processor, wherein the processor is configured to: obtain (910, 920, 1010, 1020, 1110) temperature data using the plurality of temperature sensors; compute (930, 1030, 1120) a parameter associated with a temperature of the battery based on the temperature data; and restrict (940,1040-1060, 1130-1150) a function or performance of at least one of the camera, the speaker, the display, the charging IC, the communication circuit, and the processor to lower the temperature of the battery if, taking into account the number of times the battery has been charged, the parameter is determined to be within a specified range. obtain (910, 920, 1010, 1020, 1110) temperature data using the plurality of temperature sensors; compute (930, 1030, 1120) a parameter associated with a temperature of the battery based on the temperature data; and restrict (940,1040-1060, 1130-1150) a function or performance of at least one of the camera, the speaker, the display, the charging IC, the communication circuit, and the processor to lower the temperature of the battery if, taking into account the number of times the battery has been charged, the parameter is determined to be within a specified range.