Here we describe a light-dark preference test for Drosophila larva. This assay provides information about innate and circadian regulation of light sensing and processing photobehavior.