A Time-of-Flight (TOF) sensor is a type of distance measurement sensor that uses the principle of measuring the time it takes for light or sound waves to travel to an object and back to determine distance.