The present invention relates to an oven comprising: —a first chamber and a second chambers, which are separated by separation means —conveyor means for guiding products from the inlet through these chambers to the outlet, —temperature control means for controlling the temperature and/or humidity in each chamber individually using a fluid, respectively, and —a passage in the separation means through which the conveyor means are directed from the first chamber to the second chamber.