A light detection and ranging, LiDAR, apparatus comprising: a light source configured to generate light; an optical transmitter configured to emit the light generated by the light source to outside of the LiDAR apparatus; an optical receiver configured to receive light from the outside of the LiDAR apparatus; a resonance-type photodetector configured to selectively amplify and detect light having a wavelength that is the same as a wavelength of the light generated by the light source among the light received by the optical receiver; and a processor configured to control the light source and the resonance-type photodetector, wherein the resonance-type photodetector comprises: a resonator; a phase modulator provided on the resonator and configured to control a phase of light traveling along the resonator based on control of the processor; an optical detector configured to detect an intensity of the light traveling along the resonator a first waveguide provided between the light source and the optical transmitter; a second waveguide provided between the light source and the resonator; a third waveguide provided between the optical receiver and the resonator; in a tuning mode, the processor is further configured to: provide the light generated by the light source to the resonator through the second waveguide; and match a resonance wavelength of the resonator with the wavelength of light generated by the light source by adjusting the phase of the light traveling along the resonator by controlling the phase modulator, wherein the processor is further configured to determine that the resonance wavelength of the resonator is matched with the wavelength of light generated by the light source when an intensity of light detected by the resonance-type photodetector reaches a maximum value while adjusting the phase of the light traveling along the resonator by controlling the phase modulator, and in a signal detection mode, the processor is further configured to provide the light generated by the light source to the optical transmitter through the first waveguide after the tuning mode, and the LiDAR apparatus further comprising an optical switch configured to provide the light generated by the light source to the first waveguide or to the second waveguide based on control of the processor. a light source configured to generate light; an optical transmitter configured to emit the light generated by the light source to outside of the LiDAR apparatus; an optical receiver configured to receive light from the outside of the LiDAR apparatus; a resonance-type photodetector configured to selectively amplify and detect light having a wavelength that is the same as a wavelength of the light generated by the light source among the light received by the optical receiver; and a processor configured to control the light source and the resonance-type photodetector, wherein the resonance-type photodetector comprises: a resonator; a phase modulator provided on the resonator and configured to control a phase of light traveling along the resonator based on control of the processor; an optical detector configured to detect an intensity of the light traveling along the resonator a first waveguide provided between the light source and the optical transmitter; a second waveguide provided between the light source and the resonator; a third waveguide provided between the optical receiver and the resonator; a resonator; a phase modulator provided on the resonator and configured to control a phase of light traveling along the resonator based on control of the processor; an optical detector configured to detect an intensity of the light traveling along the resonator a first waveguide provided between the light source and the optical transmitter; a second waveguide provided between the light source and the resonator; a third waveguide provided between the optical receiver and the resonator; in a tuning mode, the processor is further configured to: provide the light generated by the light source to the resonator through the second waveguide; and match a resonance wavelength of the resonator with the wavelength of light generated by the light source by adjusting the phase of the light traveling along the resonator by controlling the phase modulator, provide the light generated by the light source to the resonator through the second waveguide; and match a resonance wavelength of the resonator with the wavelength of light generated by the light source by adjusting the phase of the light traveling along the resonator by controlling the phase modulator, wherein the processor is further configured to determine that the resonance wavelength of the resonator is matched with the wavelength of light generated by the light source when an intensity of light detected by the resonance-type photodetector reaches a maximum value while adjusting the phase of the light traveling along the resonator by controlling the phase modulator, and in a signal detection mode, the processor is further configured to provide the light generated by the light source to the optical transmitter through the first waveguide after the tuning mode, and the LiDAR apparatus further comprising an optical switch configured to provide the light generated by the light source to the first waveguide or to the second waveguide based on control of the processor.