You can use sheet metal.
Solutions: Raccoons have a strong sense of smell and taste, and they rely on their very dexterous paws to help them find their way and access food.
However, these only work for a short while, if at all as the raccoon will get use to them quickly.
Spray the onion and pepper repellent along the perimeters of your yard and around your garden.
Use Live Trap Remember, this is the very last effort that you can do to keep the raccoons away.
Shed, garage, or doghouse Main Attraction: Undisturbed shelter safe from predators is highly desirable to raccoons raising their young, and the protected spaces inside sheds, garages, and unoccupied doghouses are ideal for them.