Anaerobic digestion on a farm