Squirrels have a highly developed sense of smell and are particularly attracted to the scents of peanuts, peanut butter, grains, sunflower seeds, overripe fruits, and vegetables.