An electronic device , comprising: a display including a capacitive sensor ; a communication module ; and at least one processor configured to: set at least one operational attribute of the capacitive sensor using a first value, acquire a first data measurement from the capacitive sensor when an external object contacts the display while the at least one operational attribute is set using the first value and determine that a touch input has occurred based on the first data, detect whether the determined touch input satisfies a prespecified condition, and set the at least one operational attribute of the capacitive sensor using a second value when the prespecified condition is satisfied, acquire a second data measurement from the capacitive sensor while the external object contacts the display when the at least one operational attribute is set using the second value, and determine a hydrature value associated with the external object based on the acquired second data measurement; characterised in that the at least one processor is further configured to detect whether the electronic device is operating in a call mode; and set the at least one operational attribute of the capacitive sensor using the second value when the electronic device is operating in the call mode. a display including a capacitive sensor ; a communication module ; and at least one processor configured to: set at least one operational attribute of the capacitive sensor using a first value, acquire a first data measurement from the capacitive sensor when an external object contacts the display while the at least one operational attribute is set using the first value and determine that a touch input has occurred based on the first data, detect whether the determined touch input satisfies a prespecified condition, and set the at least one operational attribute of the capacitive sensor using a second value when the prespecified condition is satisfied, acquire a second data measurement from the capacitive sensor while the external object contacts the display when the at least one operational attribute is set using the second value, and determine a hydrature value associated with the external object based on the acquired second data measurement; characterised in that the at least one processor is further configured to detect whether the electronic device is operating in a call mode; and set the at least one operational attribute of the capacitive sensor using the second value when the electronic device is operating in the call mode. set at least one operational attribute of the capacitive sensor using a first value, acquire a first data measurement from the capacitive sensor when an external object contacts the display while the at least one operational attribute is set using the first value and determine that a touch input has occurred based on the first data, detect whether the determined touch input satisfies a prespecified condition, and set the at least one operational attribute of the capacitive sensor using a second value when the prespecified condition is satisfied, acquire a second data measurement from the capacitive sensor while the external object contacts the display when the at least one operational attribute is set using the second value, and determine a hydrature value associated with the external object based on the acquired second data measurement; characterised in that the at least one processor is further configured to detect whether the electronic device is operating in a call mode; and set the at least one operational attribute of the capacitive sensor using the second value when the electronic device is operating in the call mode. detect whether the electronic device is operating in a call mode; and set the at least one operational attribute of the capacitive sensor using the second value when the electronic device is operating in the call mode. <EOS>