Denne protokol analyserer navigations opførsel af Drosophila larve i svar til samtidige optogenetic stimulation af dens olfaktoriske neuroner. Lys af 630 nm bølgelængde bruges til at aktivere individuelle olfaktoriske neuroner giver udtryk for en rød-skiftede kanal rhodopsin. Larve bevægelse spores samtidig, registreret digitalt og analyseret ved hjælp af brugerdefinerede-skrevet software.