This works for moose here in Alaska but I'm not sure about deer. Buy several bars of Irish Spring bath soap bars, drill a small hole in each one, and hang them with twine throughout your garden. The soap actually repels them (moose).
I grow one habanero pepper plant each year. I save the peppers by freezing them. When the deer start bothering something in the garden I put some water and peppers in a blender then take that and use a glass to splash that mixture on the plants. Deer or any other animal will not bother those plants with that "hot" spread on the plants. Must reapply after rain.