NOVELTY - The device comprises a pretreatment reactor (1) connected with a conveying device. The conveying device is configured for uniformly mixing garbage, and comprises a mixing chamber and a packing auger (3). One end of the conveying device is connected with the pretreatment reactor. Other end of the conveying device is connected with a hydrogen reactor. A chamber is coupled with the hydrogen reactor. An inner part of the hydrogen reactor is connected with an anaerobic hydrogen reactor and an anaerobic biogas reactor. The anaerobic biogas reactor is provided with a solid-liquid separator.    USE - The device is useful for producing hydrogen and methane.    ADVANTAGE - The convenient device can be manufactured with flexible installation and less space and cost.    DETAILED DESCRIPTION - The device comprises a pretreatment reactor (1) connected with a conveying device. The conveying device is configured for uniformly mixing garbage, and comprises a mixing chamber and a packing auger (3). One end of the conveying device is connected with the pretreatment reactor. Other end of the conveying device is connected with a hydrogen reactor. A chamber is coupled with the hydrogen reactor. An inner part of the hydrogen reactor is connected with an anaerobic hydrogen reactor and an anaerobic biogas reactor. The anaerobic biogas reactor is provided with a solid-liquid separator. A nano ceramic coating roller is coupled with anaerobic biogas reactor through the chamber. The nano ceramic coating roller is connected with a hydrogen purifier. The solid-liquid separator is configured for separating the liquid phase. A sludge bed reactor (5) is configured at lower end of a reaction area and upper end of a settling zone. The settling zone is set with a three-phase separator (23). The sludge bed reactor is connected to a methane purifier. A photo bioreactor is configured for culturing microalgae. The photo bioreactor is set with a pipeline. A microalgae culture tank is: provided with a water distributing device, an air inlet and the hydrogen and methane purifiers; and made of transparent organic glass. A discharging port is connected with a lower part of the microalgae culture tank. The microalgae culture tank and the pipeline are connected with the hydrogen purifier. The methane purifier is connected with a gas storage device through a mixing valve. The gas storage device has magnesium based, zirconium based or rare earth composite material. The pretreatment reactor is provided with a temperature controller, a pressure gauge (9), an inner container and an outer shell. The inner container and the outer shell are filled with a heat-conducting oil. The anaerobic hydrogen and biogas reactors have double layer cylindrical structure. An inner wall of the anaerobic hydrogen and biogas reactors is set with a baffle plate. The sludge bed reactor has an effective volume of 10-50%. The photo bioreactor is set inside with a light source containing a yellow fluorescent lamp tube. A top part of the gas storage device is provided with a sealing cover, a pressure meter and a pressure regulator. The air inlet and an air outlet are connected with a three-way electromagnetic valve. The microalgae is Chlorella and Dunaliella salina. An INDEPENDENT CLAIM is included for a method for producing hydrogen and methane.    DESCRIPTION OF DRAWING(S) - The diagram shows a schematic view of a device for producing hydrogen and methane.    Pretreatment reactor (1)    Packing auger (3)    Sludge bed reactor (5)    Pressure gauge (9)    Three-phase separator. (23)