Things You'll Need
Cheesecloth or mesh bags
Avocado trees (Persea Americana) aren't often plagued by insect pests. The tree naturally contains chemicals that deter most insect and herbivore pests. If these chemicals have been bred out of the tree, its fruit is more likely to be eaten by squirrels, raccoons, opossums and even rats that can easily attack at night, when they are active and people and roaming dogs are not. These mammal pests will chew the fruit in any stage of development, so maintaining deterrents is important.
Fill mesh bags with mothballs and close them with drawstrings. If you've got some cheesecloth, you can wrap up the balls and secure the top with a rubber band.
Hang the moth balls in the branches of your avocado tree, focusing on the branches that have the most fruit.
Experiment with the amount of mothballs you'll need, noting in which areas they're most effective.
Refill the bags when the smell is no longer potent to you. They will lose their efficacy if they aren't replaced pretty frequently.
Hang old or blank CDs in the branches to deter squirrels in the daytime.
Do not leave loose mothballs out as they are poisonous to all animals, including pets.