1. An electronic device, comprising:a housing configured to form an external shape of the electronic device;
a first board disposed in a first direction that is away from the housing, wherein at least one processor is mounted at the first board;
a second board disposed between the housing and the first board and electrically connected with the first board; and
a thermistor, which is not directly contacting the housing, mounted on the second board,
wherein the at least one processor measures a temperature of the housing based on an electrical signal received from the second board.