Depth adjustment mechanism using end caps mounted at the distal end of the sampling device