Digester for biogas production