Optimising resources and monitoring nutrient inputs in real time