An electronic device comprising: a wireless communication circuit transmitting and receiving a wireless signal; a plurality of antenna modules (510, 520, 530) electrically connected to the wireless communication circuit; a plurality of sensor modules, wherein each sensor module (551, 553, 555) of the plurality of sensor modules is contained in or disposed adjacent to a respective antenna module (510, 520, 530) of the plurality of antenna modules (510, 520, 530); and a processor electrically connected to the wireless communication circuit, the plurality of antenna modules (510, 520, 530), and the plurality of sensor modules, wherein the processor is configured to: transmit and receive a wireless signal through a specific antenna module (510, 520, 530) among the plurality of antenna modules (510, 520, 530), acquire status information about each of one or more other antenna modules (510, 520, 530) among the plurality of antenna modules (510, 520, 530), when a temperature of the specific antenna module (510, 520, 530) measured through a respective sensor module (551, 553, 555) of the plurality of sensor modules exceeds a predetermined value, switch from the specific antenna module (510, 520, 530) to an antenna module (510, 520, 530) selected from among the one or more other antenna modules (510, 520, 530), based on the acquired status information, and characterised in that the processor is further configured to: store a beamforming angle of the specific antenna module (510, 520, 530) when the measured temperature of the specific antenna module (510, 520, 530) exceeds the predetermined value, map the stored beamforming angle to the selected antenna module (510, 520, 530), and transmit and receive the wireless signal at the mapped beamforming angle by using the selected antenna module (510, 520, 530). a wireless communication circuit transmitting and receiving a wireless signal; a plurality of antenna modules (510, 520, 530) electrically connected to the wireless communication circuit; a plurality of sensor modules, wherein each sensor module (551, 553, 555) of the plurality of sensor modules is contained in or disposed adjacent to a respective antenna module (510, 520, 530) of the plurality of antenna modules (510, 520, 530); and a processor electrically connected to the wireless communication circuit, the plurality of antenna modules (510, 520, 530), and the plurality of sensor modules, wherein the processor is configured to: transmit and receive a wireless signal through a specific antenna module (510, 520, 530) among the plurality of antenna modules (510, 520, 530), acquire status information about each of one or more other antenna modules (510, 520, 530) among the plurality of antenna modules (510, 520, 530), when a temperature of the specific antenna module (510, 520, 530) measured through a respective sensor module (551, 553, 555) of the plurality of sensor modules exceeds a predetermined value, switch from the specific antenna module (510, 520, 530) to an antenna module (510, 520, 530) selected from among the one or more other antenna modules (510, 520, 530), based on the acquired status information, and characterised in that the processor is further configured to: store a beamforming angle of the specific antenna module (510, 520, 530) when the measured temperature of the specific antenna module (510, 520, 530) exceeds the predetermined value, map the stored beamforming angle to the selected antenna module (510, 520, 530), and transmit and receive the wireless signal at the mapped beamforming angle by using the selected antenna module (510, 520, 530). transmit and receive a wireless signal through a specific antenna module (510, 520, 530) among the plurality of antenna modules (510, 520, 530), acquire status information about each of one or more other antenna modules (510, 520, 530) among the plurality of antenna modules (510, 520, 530), when a temperature of the specific antenna module (510, 520, 530) measured through a respective sensor module (551, 553, 555) of the plurality of sensor modules exceeds a predetermined value, switch from the specific antenna module (510, 520, 530) to an antenna module (510, 520, 530) selected from among the one or more other antenna modules (510, 520, 530), based on the acquired status information, and characterised in that the processor is further configured to: store a beamforming angle of the specific antenna module (510, 520, 530) when the measured temperature of the specific antenna module (510, 520, 530) exceeds the predetermined value, map the stored beamforming angle to the selected antenna module (510, 520, 530), and transmit and receive the wireless signal at the mapped beamforming angle by using the selected antenna module (510, 520, 530). store a beamforming angle of the specific antenna module (510, 520, 530) when the measured temperature of the specific antenna module (510, 520, 530) exceeds the predetermined value, map the stored beamforming angle to the selected antenna module (510, 520, 530), and transmit and receive the wireless signal at the mapped beamforming angle by using the selected antenna module (510, 520, 530).