This study was part of the Horizon 2020 Poultry and Pig Low-input and Organic production systems' Welfare (PPILOW) project. In this study, the effect of early-life conditions on the visual discrimination abilities of adult, free-ranging laying hens was examined. These early-life treatments entailed incubation in a 12/12h green light/dark cycle and rearing with Black soldier fly larvae (BSFL) as foraging enrichment. Through a modified pebble-floor test, 171 hens of 41 to 42 wk old, housed in mobile stables with outdoor access, were tested for their ability to discriminate between food and nonfood items (mealworms and decoy mealworms). Each hen was allowed 60 pecks during the trial, from which the overall success rate, as well as within-trial learning was investigated. The latter was accomplished by dividing the 60 pecks into 3 blocks of 20 pecks and comparing the success rate between these blocks. Due to another ongoing experiment on range use, roughly half the hens received range enrichment (mealworms) at the time of testing, so this was included as a covariate in the analysis. All data regarding this experiment can be found in the excel: Data_VDA trial All feeding schemes can be found in the excel: Feed