NOVELTY - Production of hydrogen and methane from wastewater streams involves allowing heated wastewater to cool to facilitate growth, in the wastewater stream, of anaerobic thermophilic bacteria; maintaining a predetermined temperature of the wastewater stream while passing the stream through a fluidized bed biofilm reactor of desired anaerobic thermophilic bacteria; decanting; clarifying; separating fermentation products produced in the reactor from the wastewater outflow from the biorector; and returning the treated wastewater to the environment.    USE - Method for producing hydrogen and methane from wastewater streams to obtain wastewater safe for use in a bioreactor process plant and for the production of biological gasses (claimed).    ADVANTAGE - The anaerobic thermophilic bacteria in the bioreactor have a high capacity for hydrogen and/or methane production. They provide energy required to heat the untreated wastewater stream to its first predetermined temperature and/or to maintain the second predetermined temperature of the wastewater stream and for excess hydrogen and/or methane to generate electricity. The method facilitates production of hydrogen and methane from wastewater streams.    DETAILED DESCRIPTION - Production of hydrogen and methane from wastewater streams involves:    (A) receiving a primary untreated wastewater stream;    (B) heating the untreated wastewater stream to a first predetermined temperature for a predetermined time to inactivate pathogenic microorganisms in the wastewater stream;    (C) allowing the heated wastewater to cool to a second predetermined temperature which, facilitates growth, in the wastewater stream, of anaerobic thermophilic bacteria;    (D) maintaining the second predetermined temperature of the wastewater stream while passing the stream through a fluidized bed biofilm reactor of desired anaerobic thermophilic bacteria;    (E) decanting;    (F) clarifying;    (G) separating fermentation products produced in the reactor from the wastewater outflow from the biorector; and    (H) returning the treated wastewater to the environment.    INDEPENDENT CLAIMS are included for:    (1) bioreactor for the production of hydrogen and methane from wastewater streams comprising a primary untreated wastewater stream inlet, a heater for heating the untreated wastewater stream to a first predetermined temperature for a predetermined time, a cooling circuit within which the heated wastewater cools to a second predetermined temperature, a fluidized bed biofilm reactor containing desired anaerobic thermophilic bacteria and an outflow for treated wastewater into the environment; and    (2) fluidized bed biofilm reactor for the production of hydrogen and methane from wastewater streams and/or in bioreactor, in which the bioreactor has vertical flow inlet(s).    The bioreactor has greater than or equal to 3 non-vertical or side flow inlets.    DESCRIPTION OF DRAWING(S) - The drawing is a flow diagram of a process for the production of biogas.    Hydrolysis stage (1)    Acidogenesis stage (2)    Acetogenesis stage (3)    Methanogenesis stage (4)    Carbohydrates (5)