The ability of a living organism to detect and respond to changes in the environment…