Keep a layer of fine horticultural fleece over them, my friend has had wonderful carrots since she started doing this.
It is said that growing onions nearby helps, as the onion fly and the carrot fly get confused about the smells.
Don't thin out until late in the day, as they can smell that from a very long way away. A physical guard like fleece does the trick very well.