Biogas production safety turns on oxygen analyzer