To use coffee grounds as a squirrel deterrent, spread them on the ground around the areas where squirrels are active, such as gardens or potted plants. You can also place them on top of bird feeders or around the base of feeder poles.