added debug output for distance sensor