Like mathematics, logic seems to be from another realm than biology. As dualism presumes a place for things of the mind separate from where the body resides, logic seems to be what one uses to understand biology, not part thereof. Yet it is clear that we are biological and we ‘produce’ logic and thus logic is a biological phenomenon.
Biological organisms sense their environment sometimes to adjust their production of proteins, and sometimes even to move towards better environments.