Figure out the ants’ main points of entry—windowsill, doorway, baseboards—and sprinkle those places with any of the following...
Cayenne pepper, Chili powder, Cinnamon, Sage, Whole cloves, Bay leaves, Cream of tartar, Salted cucumber peelings, Dried peppermint leaves or peppermint oil
Distilled white vinegar
Lemon juice and peel—mix it with water and wash the kitchen floor, Baby powder, Uncooked white or brown rice
You can also sprinkle the above items in food pantries or cupboards.