Save our hedge hogs

When i was a youngster ,many moons ago around about tenyrs old i discoverd we had a prickley little animal living in our back garden under a pile of old logs .reserched these little things and they out lived the sabre tooth tiger,over five thousand spines ouch !!! but there in decline, yep , gardeners friend so what can we do to help .firstly we make safe havens in the garden,some logs ,pile of rocks.what pesticide we use maybe stop useing slug pelletts.then there is the food side of things ,slugs,worms and bugs inshort leave water and or cat and dog food out but not milk or bread lactose intolerant .so please help our prickly friend out .thank you