A thermal hydrolysis pilot plant with direct steam injection heating was designed and constructed. In a first period the equipment was operated in batch to verify the effect of sludge type, pressure and temperature, residence time and solids concentration. Optimal operation conditions were reached for secondary sludge at 170°C, 7 bar and 30 minutes residence time, obtaining a disintegration factor higher than 10, methane production increase by 50% and easy centrifugation In a second period the pilot plant was operated working with continuous feed, testing the efficiency by using two continuous anaerobic digester operating in the mesophilic and thermophilic range. Working at 12 days residence time, biogas production increases by 40–50%. Integrating the energy transfer it is possible to design a self-sufficient system that takes advantage of this methane increase to produce 40% more electric energy.