Regulation of lifespan by sensory perception in Caenorhabditis elegans