An electronic device includes a connector including a plurality of terminals for electrically connecting to a power supply device supplying a power to the electronic device and a control circuit. The control circuit senses a moisture entering the connector, changes an impedance of at least one specified data terminal among the terminals in response to the sensing of the moisture such that the power supply device identifies the impedance of the at least one specified data terminal and changes a level of a voltage depending on the impedance, and receives the voltage whose level is changed from the power supply device. Other various embodiments identified in the specification are also possible.
展开▼