The objective of the project is on-line measurement of the nutrient content in sludge and bioslurry by near infrared spectroscopy, either during deployment or during loading of the spreader. It is also an objective to recommend which is the best of these options by deriving the variation at the farm level. We will focus on dairy, pig and bio slurry. Financing the bio slurry part is sought as a supplement from the Swedish Energy Agency. A very large proportion of total P and K is spread as manure in Sweden, and almost all manure from fattening pigs and dairy cows is spread as slurry. The variation of dry-matter and nutrient content is very large, but the variation within farms is less known. This project will provide information on that. For effective nutrient use efficiency it is important with control on available manures. This enables variable rate application according to requirement and for variations in soil and crop. Both conventional and organic farming can benefit from this.