They use fossilized plankton who’s shells contain minerals which they can determine the acidity that the animal existed within. I admit I don’t know the state of the art of this but this allows them to go deep into the past when the oceans covered much of the earth.