Patent ID: 11432087

Abstract:
According to various embodiments, there may be provided an electronic device comprising: a housing comprising a first space connected to the outside of the electronic device; a speaker device arranged inside the housing; a speaker housing comprising a second space formed to be spatially separated from the inner space of the electronic device by the speaker device inside the housing, the second space being arranged to be connected to the first space; a first atmospheric pressure sensor which is exposed to the first space and has a waterproofing function; a second atmospheric pressure sensor arranged in the inner space; and a processor, wherein the electronic device is configured to detect immersion of the electronic device in water or removal thereof from the immersion on the basis of the amount of atmospheric pressure change confirmed through the first atmospheric pressure sensor, and is configured to control the water-repellent operation through the speaker device on the basis of a difference value between first atmospheric pressure information acquired from the first atmospheric pressure sensor and second atmospheric pressure information acquired through the second atmospheric pressure sensor. Various other embodiments may be possible.