According to an embodiment, for example, an electronic device wearable on a body, the electronic device including: a first sensor to emit light to a body and to output a signal corresponding to a received amount of light that has passed through a body or has been reflected by a body; and a circuitry to determine whether the electronic device is on the body, by using amplitude and frequency information corresponding to a pulse in the signal output from the first sensor.