havaheart trap +catfood+ 30 gal drum water.
If you want to trap them I suggest a couple of things:
1) Buy a quality trap (they will tear up a cheap cage trap)
2) Use marshmellows! Do NOT use cat food or dog food unless you don't mind catching every dog, cat, opossum, & skunk in the area. Raccoon's love marsh mellows but most other animals do not...
3) Don't touch trap with hands, wear gloves.
4) Take the raccoon at least 10 miles away (I recommend 20miles) unless you want it to come back.
5) Raccoon's normally have 2-4 young babies to take care of from March-May & sometimes even in the fall, so please remember to look at the tits of the raccoon before releasing it to make sure it isn't a nursing female. You don't want to risk having to pull dead STINKY baby raccoons out of your attic, or paying someone like me hundreds of dollars to do it for you.
6) If you do manage to catch a nursing mother in a trap keep her hydrated & in the shade & her babies (if old enough to walk) will usually come to the trap & you can catch them & haul them off with their mother. Keep in mind that raccoons normally have 3-4 babies so if only 1 or 2 babies come to the trap then you might have to hunt down the other one's.
If the babies don't come to their mother in the trap & you can't find them then you should let the mother out of the trap because the babies will starve to death if you haul her off.
The other posters gave some good advice for deterring them with predators urine & not using any meal in your holes that might attract them. You can also build a cage around your plants using hardware cloth (chicken wire is no good), but be sure to dig a 2ft deep & 1ft wide trench to put the HW cloth in or else the raccoons or other critters (skunks) will just dig it up. Raccoons are very tenacious lil critters & you might consider hiring a professional if you're in an area that has a lot of them. GL