A simple and reliable proposal to determine the technical feasibility of biogas use and the energetic self-sustainability in UASB-based sewage treatment plants.