“…Biogas as a generator of electrical energy is considered a renewable energy that would contribute to increasing energy security. Biogas is a clean renewable energy that promises to be a good substitution for traditional fossil fuels (Krause et al, 2008;Gómez-Guerrero et al, 2019;Romero-Flores et al, 2019). The anaerobic digestion is considered as consolidated technology to treat wastewater polluted with high content of organic matter, and it has been applied to several sectors such as agro-food industry, beverage, alcohol distillery, pulp industry, textile, paper industries, among others (van Lier 2008;Donoso-Bravo et al, 2009;Terreros-Mecalco et al, 2009;Alzate-Ibanez, 2018).…”