A ToF sensor uses short pulses of laser light to measure the delay between the time the light pulse was emitted and the time an object in the scene reflects the back to the camera. The distance from the camera to the target can be calculated based on the speed of light. ToF sensing is analogous to echolocation, only it uses light instead of sound.