The best raccoon
deterrent is actually to have your home checked by a professional before you ever have a problem with raccoons. For example any location were they can gain entry to your attic or some other place inside your home should be covered with heavy gauge wire mesh and screw nailed into the surrounding roof or siding. if you do need to screw nail into the roof, be sure to use a sealing compound to avoid any potential water damage.
There are many web sites that advertise a variety of raccoon deterrents. These include everything from moth balls to wolf urine. Don't buy them because you are wasting your money and smelling up your home. Block all entry points to make sure that they cannot get in in the first place. This is the best form of raccoon deterrents.
If you already have a raccoon problem, you will still need raccoon deterrents, but first you need to get rid of them. If they have young ones, make sure you get the young ones out as well otherwise the parents will tear
your roof apart to get back into the attic were they are. Once the young ones are old enough to travel, installing strong gauged wire mesh with a one way trap door is the best bet, so they can get out, but not in again. this is the best form of raccoon deterrents.
In case you are wondering raccoons will have up to 4 or 5 different dens in a neighborhood and there can be as many as 5 or 6 families in a square mile, sometimes more. So trapping one family and moving them well away will not solve your problem, especially if you have not blocked the entrance. Another family is just going to move right in. So forget those other types of raccoon deterrents and install a strong wire mesh they cannot remove or get through.