This protocol establishes methods for extracting and quantifying responses to the volatile sex pheromone in C. elegans, providing tools to study chemical communication and navigation trajectory.