A dishwasher comprising a tub wherein the washing items are washed, rinsed and dried, a fan that enables hot and humid air to be sucked through a suction channel that opens into the tub during a drying process and to be mixed with dry air from the outside environment in a certain ratio, an outlet port that guides the air blown by the fan, a discharge channel that is connected to the outlet port and that enables the air blown by the fan to be delivered to the outside environment and a return channel that is connected to the outlet port and that enables the air blown by the fan to be redelivered into the tub, characterized in that the dishwasher further comprises at least one humidity sensor disposed at the outlet port and a guiding means - that is positioned at the outlet port, - that enables, depending on humidity data received from said at least one humidity sensor, the air sucked from the suction channel and from the outside environment and blown from the outlet port by the fan to be discharged directly to the outside environment by guiding said mixed air to the discharge channel or to be redelivered into the tub by guiding it to the return channel, - that has an actuation mechanism and a valve that can be changed to two different positions by being rotated by the actuation mechanism, which when in the first position, enabling the air blown from the outlet port to be guided to the return channel by closing the discharge channel and opening the return channel and when in the second position, enabling the air blown from the outlet port to be guided to the discharge channel by closing the return channel and opening the discharge channel. rinsed and dried, a fan that enables hot and humid air to be sucked through a suction channel that opens into the tub during a drying process and to be mixed with dry air from the outside environment in a certain ratio, an outlet port that guides the air blown by the fan, a discharge channel that is connected to the outlet port and that enables the air blown by the fan to be delivered to the outside environment and a return channel that is connected to the outlet port and that enables the air blown by the fan to be redelivered into the tub, characterized in that the dishwasher further comprises at least one humidity sensor disposed at the outlet port and a guiding means - that is positioned at the outlet port, - that enables, depending on humidity data received from said at least one humidity sensor, the air sucked from the suction channel and from the outside environment and blown from the outlet port by the fan to be discharged directly to the outside environment by guiding said mixed air to the discharge channel or to be redelivered into the tub by guiding it to the return channel, - that has an actuation mechanism and a valve that can be changed to two different positions by being rotated by the actuation mechanism, which when in the first position, enabling the air blown from the outlet port to be guided to the return channel by closing the discharge channel and opening the return channel and when in the second position, enabling the air blown from the outlet port to be guided to the discharge channel by closing the return channel and opening the discharge channel. - that is positioned at the outlet port, - that enables, depending on humidity data received from said at least one humidity sensor, the air sucked from the suction channel and from the outside environment and blown from the outlet port by the fan to be discharged directly to the outside environment by guiding said mixed air to the discharge channel or to be redelivered into the tub by guiding it to the return channel, - that has an actuation mechanism and a valve that can be changed to two different positions by being rotated by the actuation mechanism, which when in the first position, enabling the air blown from the outlet port to be guided to the return channel by closing the discharge channel and opening the return channel and when in the second position, enabling the air blown from the outlet port to be guided to the discharge channel by closing the return channel and opening the discharge channel.