An electronic device comprising: a housing; a plurality of output devices (110-1, 110-2,..., 110-M) configured to be visually exposed through a portion of the housing and disposed at different positions; a sensor module positioned in the housing, wherein the sensor module comprises a plurality of sensors (176-1, 176-2,..., 176-N) each sensor disposed at a position adjacent to the position at which a corresponding output device of said plurality of output devices is disposed; and a processor positioned in the housing and operatively connected to the plurality of output devices (110-1, 110-2,..., 110-M) and the sensor module, wherein the processor is configured to, obtain a plurality of first distance values between the plurality of output devices and a first object through a first signal output using the sensor module, output light through at least one first output device selected from among the plurality of output devices (110-1, 110-2,..., 110-M), based on at least one first distance value belonging to distance values in a first specified range among the plurality of first distance values, obtain a plurality of second distance values between the plurality of output devices (110-1, 110-2,..., 110-M) and the first object, of which a position has been changed after the light is output, through a second signal output using the sensor module, and output light through at least one second output device selected from among the plurality of output devices (110-1, 110-2,..., 110-M), based on at least one second distance value belonging to values in a second specified range among the plurality of second distance values; and characterised in that the processor is configured to, obtain a plurality of third distance values between the plurality of output devices (110-1, 110-2,..., 110-M) and a second object through a third signal output from the sensor module, and output light through at least one third output device selected from among the plurality of output devices (110-1, 110-2,..., 110-M) based on at least one third distance value belonging to values in a third specified range among the plurality of third distance values, while light is output through the at least one second output device, and wherein the second object is different from the first object, and wherein the light is output through the at least one second output device towards the first object and the light is output through the at least one third output device towards the second object. a housing; a plurality of output devices (110-1, 110-2,..., 110-M) configured to be visually exposed through a portion of the housing and disposed at different positions; a sensor module positioned in the housing, wherein the sensor module comprises a plurality of sensors (176-1, 176-2,..., 176-N) each sensor disposed at a position adjacent to the position at which a corresponding output device of said plurality of output devices is disposed; and a processor positioned in the housing and operatively connected to the plurality of output devices (110-1, 110-2,..., 110-M) and the sensor module, wherein the processor is configured to, obtain a plurality of first distance values between the plurality of output devices and a first object through a first signal output using the sensor module, output light through at least one first output device selected from among the plurality of output devices (110-1, 110-2,..., 110-M), based on at least one first distance value belonging to distance values in a first specified range among the plurality of first distance values, obtain a plurality of second distance values between the plurality of output devices (110-1, 110-2,..., 110-M) and the first object, of which a position has been changed after the light is output, through a second signal output using the sensor module, and output light through at least one second output device selected from among the plurality of output devices (110-1, 110-2,..., 110-M), based on at least one second distance value belonging to values in a second specified range among the plurality of second distance values; and characterised in that the processor is configured to, obtain a plurality of third distance values between the plurality of output devices (110-1, 110-2,..., 110-M) and a second object through a third signal output from the sensor module, and output light through at least one third output device selected from among the plurality of output devices (110-1, 110-2,..., 110-M) based on at least one third distance value belonging to values in a third specified range among the plurality of third distance values, while light is output through the at least one second output device, and wherein the second object is different from the first object, and wherein the light is output through the at least one second output device towards the first object and the light is output through the at least one third output device towards the second object.