With the increasing demand for 3D depth information in various industrial applications, light detection and ranging (LiDAR) has been emerged as one of the solutions to measure the distance of an object. However, existing AMCW-based indirect ToF sensors have problems related to the measurement accuracy since the measured depth is sensitive to the amplitude of the received light signal. In this paper, the effects of the stray light on depth measurement accuracy are analyzed in the aspects of the received signal’s amplitude and measured phase. Furthermore, a pre-compensation method that removes the effects of stray light is validated.