Locate the leaning sprinkler head.
Dig up the area surrounding the sprinkler body. Remove at least 5 inches of dirt from around the base of the sprinkler.
Position the sprinkler so it is level in the ground. As an option, you can place a small bubble level on top of the sprinkler head to find the perfectly level position.
Hold the sprinkler in place and fill the area around the sprinkler body with the dirt you previously removed.
Pack the dirt down around the sprinkler by hand or step on the dirt to pack it tight. This will hold the sprinkler in place.