An electronic device, comprising: at least one electrode having conductivity; a capacitance sensor; at least one switch configured to be electrically connected between at least one electrode and the capacitance sensor, and configured to selectively connect the at least one electrode and the capacitance sensor; a proximity sensor; and a control circuit, wherein the control circuit is configured to: initialize a touch system related to determining whether the at least one electrode and an external object are in contact using the capacitance sensor; measure a first capacitance value using the capacitance sensor in a state in which the at least one switch is open; determine whether the external object close to the electronic device exists, using the proximity sensor; if it is determined that the external object exists close to the electronic device, determine a threshold value for determining whether the at least one electrode is in contact with the external object, based on the first capacitance value; electrically connect the at least one electrode and the capacitance sensor by controlling the at least one switch; measure a second capacitance value using the capacitance sensor, in a state in which the at least one switch is connected; correct the second capacitance value using the first capacitance value and the threshold value; determine the corrected second capacitance value to be a capacitance value for the external object; and determine whether the at least one electrode is in contact with the external object, based on the corrected second capacitance value and the threshold value. at least one electrode having conductivity; a capacitance sensor; at least one switch configured to be electrically connected between at least one electrode and the capacitance sensor, and configured to selectively connect the at least one electrode and the capacitance sensor; a proximity sensor; and a control circuit, wherein the control circuit is configured to: initialize a touch system related to determining whether the at least one electrode and an external object are in contact using the capacitance sensor; measure a first capacitance value using the capacitance sensor in a state in which the at least one switch is open; determine whether the external object close to the electronic device exists, using the proximity sensor; if it is determined that the external object exists close to the electronic device, determine a threshold value for determining whether the at least one electrode is in contact with the external object, based on the first capacitance value; electrically connect the at least one electrode and the capacitance sensor by controlling the at least one switch; measure a second capacitance value using the capacitance sensor, in a state in which the at least one switch is connected; correct the second capacitance value using the first capacitance value and the threshold value; determine the corrected second capacitance value to be a capacitance value for the external object; and determine whether the at least one electrode is in contact with the external object, based on the corrected second capacitance value and the threshold value. initialize a touch system related to determining whether the at least one electrode and an external object are in contact using the capacitance sensor; measure a first capacitance value using the capacitance sensor in a state in which the at least one switch is open; determine whether the external object close to the electronic device exists, using the proximity sensor; if it is determined that the external object exists close to the electronic device, determine a threshold value for determining whether the at least one electrode is in contact with the external object, based on the first capacitance value; electrically connect the at least one electrode and the capacitance sensor by controlling the at least one switch; measure a second capacitance value using the capacitance sensor, in a state in which the at least one switch is connected; correct the second capacitance value using the first capacitance value and the threshold value; determine the corrected second capacitance value to be a capacitance value for the external object; and determine whether the at least one electrode is in contact with the external object, based on the corrected second capacitance value and the threshold value.