Foundation

I'm watching foundation and it feels like it's the opposite of the book , in the book religion is a cynical way to manipulate the masses to maintain a level of technical competence but in the series it feels as though science is utterly irrelevant am alone in thinking this