A distance measuring device comprising: a light transmitter configured to emit a distance measuring beam onto an object; a light receiver configured to sense light reflected by the object and collected by the distance measuring device; a first distance calculator configured to calculate a value of a first distance between the distance measuring device and the object through the sensed light using a triangulation measurement scheme; a second distance calculator configured to calculate a value of a second distance between the distance measuring device and the object through the sensed light using a Time of Flight, TOF, scheme; and a controller configured to: compare the value of the first distance and the value of the second distance with a reference distance, if both the value of the first distance and the value of the second distance are less than the reference distance, assign a first weight to the value of the first distance and a second weight to the value of the second distance, wherein the first weight is greater than the second weight, and if both the value of the first distance and the value of the second distance are greater than the reference distance, assign a third weight to the value of the first distance and a fourth weight to the value of the second distance, wherein the third weight is less than the fourth weight, and determine a final distance between the distance measuring device and the object from the weighted value of the first distance and the weighted value of the second distance, wherein the light transmitter and the light receiver are fixed to a rotating substrate, and when the rotating substrate rotates about a vertical line, the light transmitter and the light receiver rotate together. a light transmitter configured to emit a distance measuring beam onto an object; a light receiver configured to sense light reflected by the object and collected by the distance measuring device; a first distance calculator configured to calculate a value of a first distance between the distance measuring device and the object through the sensed light using a triangulation measurement scheme; a second distance calculator configured to calculate a value of a second distance between the distance measuring device and the object through the sensed light using a Time of Flight, TOF, scheme; and a controller configured to: compare the value of the first distance and the value of the second distance with a reference distance, if both the value of the first distance and the value of the second distance are less than the reference distance, assign a first weight to the value of the first distance and a second weight to the value of the second distance, wherein the first weight is greater than the second weight, and if both the value of the first distance and the value of the second distance are greater than the reference distance, assign a third weight to the value of the first distance and a fourth weight to the value of the second distance, wherein the third weight is less than the fourth weight, and determine a final distance between the distance measuring device and the object from the weighted value of the first distance and the weighted value of the second distance, wherein the light transmitter and the light receiver are fixed to a rotating substrate, and when the rotating substrate rotates about a vertical line, the light transmitter and the light receiver rotate together. compare the value of the first distance and the value of the second distance with a reference distance, if both the value of the first distance and the value of the second distance are less than the reference distance, assign a first weight to the value of the first distance and a second weight to the value of the second distance, wherein the first weight is greater than the second weight, and if both the value of the first distance and the value of the second distance are greater than the reference distance, assign a third weight to the value of the first distance and a fourth weight to the value of the second distance, wherein the third weight is less than the fourth weight, and determine a final distance between the distance measuring device and the object from the weighted value of the first distance and the weighted value of the second distance, wherein the light transmitter and the light receiver are fixed to a rotating substrate, and when the rotating substrate rotates about a vertical line, the light transmitter and the light receiver rotate together.