"the fungus requires use of the ant's nervous system and sensory processing to figure out where a high up place is"
How do you know this?
Maybe the ant is simply reacting to sensations of cold temperature, and maybe it goes blind, setting off reactions to wander away from the ground, search for bright areas to warm up when in dark unfamiliar tunnels.