Terrain following sensor