A CS survey of low-mass cores and comparison with NH3 observations