An electronic device (101; 201; 501; 601; 701; 801), comprising: a first camera module (421; 591; 691; 791; 891) and a second camera module (431; 592; 692; 792; 892); a motion sensor (541; 641; 794; 841, 894) configured to sense a motion of the electronic device and/or a motion of the first camera module or second camera module; and a control circuit (520; 620; 720; 820) configured to: identify whether at least one of the first camera module and the second camera module is activated while the motion sensor is operating in a first sensing range to sense the motion of the electronic device, based on identifying that at least one of the first camera module and the second camera module is activated, change a sensing range of the motion sensor from the first sensing range to a second sensing range to sense the motion of the first camera module or the second camera module, wherein the first sensing range is greater than the second sensing range; based on identifying that the at least one of the first camera module and the second camera module is activated, perform optical image stabilization of the first camera module or second camera module using a signal received from the motion sensor operating in the second sensing range; and based on identifying that sensing the motion of the electronic device is required whilst the first camera module or second camera module is activated, change the sensing range of the motion sensor to the third sensing range to sense the motion of the electronic device and the first camera module or the second camera module, wherein the third sensing range is between the first sensing range and the second sensing range. a first camera module (421; 591; 691; 791; 891) and a second camera module (431; 592; 692; 792; 892); a motion sensor (541; 641; 794; 841, 894) configured to sense a motion of the electronic device and/or a motion of the first camera module or second camera module; and a control circuit (520; 620; 720; 820) configured to: identify whether at least one of the first camera module and the second camera module is activated while the motion sensor is operating in a first sensing range to sense the motion of the electronic device, based on identifying that at least one of the first camera module and the second camera module is activated, change a sensing range of the motion sensor from the first sensing range to a second sensing range to sense the motion of the first camera module or the second camera module, wherein the first sensing range is greater than the second sensing range; based on identifying that the at least one of the first camera module and the second camera module is activated, perform optical image stabilization of the first camera module or second camera module using a signal received from the motion sensor operating in the second sensing range; and based on identifying that sensing the motion of the electronic device is required whilst the first camera module or second camera module is activated, change the sensing range of the motion sensor to the third sensing range to sense the motion of the electronic device and the first camera module or the second camera module, wherein the third sensing range is between the first sensing range and the second sensing range. identify whether at least one of the first camera module and the second camera module is activated while the motion sensor is operating in a first sensing range to sense the motion of the electronic device, based on identifying that at least one of the first camera module and the second camera module is activated, change a sensing range of the motion sensor from the first sensing range to a second sensing range to sense the motion of the first camera module or the second camera module, wherein the first sensing range is greater than the second sensing range; based on identifying that the at least one of the first camera module and the second camera module is activated, perform optical image stabilization of the first camera module or second camera module using a signal received from the motion sensor operating in the second sensing range; and based on identifying that sensing the motion of the electronic device is required whilst the first camera module or second camera module is activated, change the sensing range of the motion sensor to the third sensing range to sense the motion of the electronic device and the first camera module or the second camera module, wherein the third sensing range is between the first sensing range and the second sensing range.