Fortune-telling: Parshat Kedoshim

What's the connection between the prohibition against sorcerous fortune-telling and the obligation to honor the elderly and the wise?