The article actually explains that the mushroom is essentially being hijacked for some of its sensory abilities, like light and heat. The mushroom is connected to an electronic circuit. The electronics make decisions about what to do based on the mushrooms’ sensory observations.
It’s a clickbait title, but the article does clarify.