Reducing carbon footprint on a dairy farm