Detecting signals from the environment is essential for animals to ensure their survival. To this aim, they use environmental cues such as vision, mechanoreception, hearing, and chemoperception through taste, via direct contact or through olfaction, which represents the response to a volatile molecule acting at longer range. Volatile chemical molecules are very important signals for most animals in the detection of danger, a source of food, or to communicate between individuals. Drosophila melanogaster is one of the most common biological models for scientists to explore the cellular and molecular basis of olfaction. In order to highlight olfactory abilities of this small insect, we describe a modified choice protocol based on the Y-maze test classically used with mice. Data obtained with Y-mazes give valuable information to better understand how animals deal with their perpetually changing environment. We introduce a step-by-step protocol to study the impact of odorants on fly exploratory response using this Y-maze assay.