ToF sensors measure depth by emitting a light pulse and calculating the time it takes for the light to bounce back after hitting an object. The time difference provides accurate depth information.