Sprinkle a little bit of cinnamon on the floor, a trick that has been effective for many years
Luckily, you can easily keep ants away by using cinnamon as a repellent. It has a nice smell that people like, but ants don’t like it. This scent confuses and distracts them, making it hard for them to follow the scent trail they use to communicate.
To keep ants away, just sprinkle a little cinnamon powder on the floor or surface where you see them. Make sure to check all the places where you have seen ants, especially near windows, doors, and cracks in walls. If ants are coming in from a specific spot, you can use cinnamon as a barrier by sprinkling it on that area.