Extracting and utilising heat from an hydrogen production plant