Nikola Tesla said this quote

Science is opposed to theological dogmas because science is founded on fact. To me, the universe is simply a great machine which never came into being and never will end. The human being is no exception to the natural order. Man, like the universe, is a machine. Nothing enters our minds or determines our actions which is not directly or indirectly a response to stimuli beating upon our sense organs from without. Owing to the similarity of our construction and the sameness of our environment, we respond in like manner to similar stimuli, and from the concordance of our reactions, understanding is born. In the course of ages, mechanisms of infinite complexity are developed, but what we call 'soul' or 'spirit,' is nothing more than the sum of the functionings of the body. When this functioning ceases, the 'soul' or the 'spirit' ceases likewise.I expressed these ideas long before the behaviorists, led by Pavlov in Russia and by Watson in the United States, proclaimed their new psychology. This apparently mechanistic conception is not antagonistic to an ethical conception of life.