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