Firstly, read the manufacturer's instructions for your air fryer model, as they may advise against using aluminum foil or have specific guidelines for its use. Secondly, if you choose to use foil, be sure to place it in the bottom of the fryer basket, leaving some space for air to circulate around the food and cook it, but do not cover the bottom of the fryer, as that's the source of the hot air.