In some embodiments, the electronic device includes a light source that emits light passing through a portion of the user's body, a plurality of photosensors that detect a diffusion pattern of the emitted light, and a controller that detects a user's gesture based on a diffusion pattern of the emitted light .일부 실시예에서, 전자 장치는 사용자 신체의 일부로 관통하는 광을 방출하는 광원, 방출된 광의 확산 패턴을 검출하는 복수의 광 센서, 및 방출된 광의 확산 패턴에 기초하여 사용자의 제스처를 검출하는 제어부를 포함할 수 있다.