Although they can detect food items, airport scanners cannot tell if they are edible. Whether the airport security staff considers the edibles to be suspicious varies. The edibles' packaging and odor could be giveaways.