If your dehumidifier is functioning but not removing moisture from the air, you should investigate the possibility of a problem with the compressor. There's likely not enough refrigerant in the system, which prevents it from removing as much moisture as possible from the air. This is a regular issue with older dehumidifiers and those that aren't maintained very well despite being put through a lot of work.