Carefully encourage the hedgehog out of the compost bin. Use gloves if necessary or call an animal control specialist. Make sure your compost bin is secure. Put out for hedgehogs, there are lots of delicious foods that hedgehogs like to eat. This will help prevent them from going into your compost bin by providing an alternative food source.