An optical device includes a light receiving element for detecting light reflected and transmitted from a subject; a voltage part for providing a first bias voltage or a second bias voltage to the light receiving element; and a controller for controlling the voltage part so that the second bias voltage provided from the voltage part is synchronized with a light output of a light emitting part to be provided to the light receiving element.