An electronic device comprising: a housing comprising a first plate which faces a first direction, a second plate which faces away from the first plate, and a side member which surrounds a space between the first plate and the second plate; a display viewed through a first portion of the first plate; an antenna array disposed in the housing or in part of the housing; an image sensor viewed through a second portion, which is close to the display, of the first plate and disposed to face the first direction; a wireless communication device electrically coupled to the antenna array and configured to form a directional beam using the antenna array, wherein the wireless communication device is configured to transmit and/or receive a millimeter wave signal; a processor disposed in the housing and operably coupled to the image sensor and the wireless communication device; and a memory operably coupled to the processor, wherein the memory stores instructions, when executed, causing the processor to: obtain and receive at least one image using the image sensor, recognize an object in the at least one image, determine a transmit direction of each directional beam in a sequence of directional beams based at least in part on the recognized object, transmit the sequence of the directional beams in the transmit direction, using the antenna array, wherein the sequence of the directional beams is transmitted in frequencies of 3 GHz through 100 GHz, receive a sequence of reflected waves reflected by the object, using the antenna array, wherein the sequence of the reflected waves is received in frequencies of 3 GHz through 100 GHz, and recognize the object, based at least in part on the recognized object and the sequence of the reflected waves. a housing comprising a first plate which faces a first direction, a second plate which faces away from the first plate, and a side member which surrounds a space between the first plate and the second plate; a display viewed through a first portion of the first plate; an antenna array disposed in the housing or in part of the housing; an image sensor viewed through a second portion, which is close to the display, of the first plate and disposed to face the first direction; a wireless communication device electrically coupled to the antenna array and configured to form a directional beam using the antenna array, wherein the wireless communication device is configured to transmit and/or receive a millimeter wave signal; a processor disposed in the housing and operably coupled to the image sensor and the wireless communication device; and a memory operably coupled to the processor, wherein the memory stores instructions, when executed, causing the processor to: obtain and receive at least one image using the image sensor, recognize an object in the at least one image, determine a transmit direction of each directional beam in a sequence of directional beams based at least in part on the recognized object, transmit the sequence of the directional beams in the transmit direction, using the antenna array, wherein the sequence of the directional beams is transmitted in frequencies of 3 GHz through 100 GHz, receive a sequence of reflected waves reflected by the object, using the antenna array, wherein the sequence of the reflected waves is received in frequencies of 3 GHz through 100 GHz, and recognize the object, based at least in part on the recognized object and the sequence of the reflected waves. obtain and receive at least one image using the image sensor, recognize an object in the at least one image, determine a transmit direction of each directional beam in a sequence of directional beams based at least in part on the recognized object, transmit the sequence of the directional beams in the transmit direction, using the antenna array, wherein the sequence of the directional beams is transmitted in frequencies of 3 GHz through 100 GHz, receive a sequence of reflected waves reflected by the object, using the antenna array, wherein the sequence of the reflected waves is received in frequencies of 3 GHz through 100 GHz, and recognize the object, based at least in part on the recognized object and the sequence of the reflected waves.