Drillers also use sensors to detect particularly promising rock intervals within the formation, and are able to move the drill string up or down, left or right as they drill through the horizontal section to target those intervals.
FORBES: Horizontal Drilling: A Technological Marvel Ignored