I use cat litter around the areas where squirrels try to enter my home or any other place I don't want the squirrels to enter or get at.
For some reason the squirrels hate cat litter and won't cross it or go near it.
I also use an ultrasonic pest repellent device in my attic and around any other places where the Ultrasonic pest repellent device can be placed.