Abstract Motile organisms actively detect environmental signals and migrate to a preferable environment. Especially, small-size animals convert subtle difference in sensory input into orientation behavioral output for directly steering toward a destination, but the neural mechanisms underlying steering behavior remain elusive. Here, we analyze a C. elegans thermotactic behavior in which a small number of neurons are shown to mediate steering toward a destination temperature. We construct a neuroanatomical model and use an evolutionary algorithm to find configurations of the model that reproduce empirical thermotactic behavior. We find that, in all the evolved models, steering rates are modulated by persistent thermal signals sensed through forward locomotion. Persistent temperature increment lessens steering rates resulting in straight movement of model worms, whereas temperature decrement enlarges steering rates resulting in curvy movement. This relationship between temperature change and steering rates reproduces the empirical thermotactic migration up thermal gradients and steering bias toward higher temperature. Further, spectrum decomposition of neural activities in model worms show that thermal signals are transmitted from a sensory neuron to motor neurons on the longer time scale than sinusoidal locomotion of C. elegans . Our results suggest that employments of persistent sensory signals enable small-size animals to steer toward a destination in natural environment with variable, noisy, and subtle cues. Author summary A free-living nematode Caenorhabditis elegans memorizes an environmental temperature and steers toward the remembered temperature on a thermal gradient. How does the C. elegans brain, consisting of 302 neurons, achieve this thermotactic steering behavior? Here, we address this question through neuroanatomical modeling and simulation analyses. We find that persistent thermal input modulates steering rates of model worms; worms run straight when they move up to a destination temperature, whereas run crookedly when move away from the destination. As a result, worms steer toward the destination temperature as observed in experiments. Our analysis also shows that persistent thermal signals are transmitted from a thermosensory neuron to dorsal and ventral neck motor neurons, regulating the balance of dorsoventral muscle contractions of model worms and generating steering behavior. This study indicates that C. elegans can steer toward a destination temperature without processing acute thermal input that informs to which direction it should steer. Such indirect mechanism of steering behavior is potentially employed in other motile organisms.