Modeling and Compensating of Noise in Time-of-Flight Sensors