Sustainable bioreactor system for producing hydrogen