According to the dehumidifier and the control method thereof, after a microswitch is closed, a compressor and an air supply device are not controlled to stop immediately, the rotating speed of the compressor is kept unchanged, the rotating speed of the air supply device is reduced, supplied air is reduced, the
continuous operation time of the compressor is further detected at the moment, and the closing time of the microswitch is detected again; when the
continuous operation time of the compressor is larger than the
operation time threshold value, it is indicated that the
operation time of the dehumidifier reaches the
limit value, it can be determined that the detected water fullness
signal is accurate, and at the moment, the compressor and the
air blower are controlled to stop; when the closing time of the microswitch is larger than a set value, it is indicated that the closing time of the microswitch is long enough, the compressor and the
air blower are controlled to stop, and if the microswitch is closed due to
water level fluctuation, the re-detected closing time is very short or zero, and therefore it can be determined that the water fullness
signal is accurate. By adopting the embodiment of the invention, the problem of
false alarm caused by
water level fluctuation of the water tank can be avoided.