Aquinas, following Augustine, says that astrology does not appear to be sinful in observing the effects from the celestial bodies to the body & earth and using this to one’s advantage.
However, engaging in it as if man’s will were subject to them can be something demonic.