A washing machine comprising: a tub storing water; a drum provided in the tub and accommodates laundry; and a detergent supply device supplying a liquid additive to the tub ; a controller controlling the operation of the detergent supply device ; and a memory which is configured to store conductivity data according to the type of additive, wherein the detergent supply device comprises: a cartridge housing in which the plurality of cartridges are detachably seated; a plurality of cartridges containing the additive respectively; an electrode sensor detecting conductivity of the additive contained in the plurality of cartridges ; and a pump extracting the additive contained in the cartridge , wherein the controller is configured to compare the detection value of the electrode sensor with data stored in the memory and determine a type of additive contained in the cartridge based on a detection value of the electrode sensor , wherein the electrode sensor comprises: a plurality of electrode plates which are respectively installed in the plurality of cartridges and has one surface which is installed to be in contact with the additive contained in the cartridge ; and a plurality of terminals which are installed in the cartridge housing , and installed respectively in a position facing the plurality of electrode plates , wherein the electrode plate and the terminal are in contact with each other when the cartridge is seated in the cartridge housing . a tub storing water; a drum provided in the tub and accommodates laundry; and a detergent supply device supplying a liquid additive to the tub ; a controller controlling the operation of the detergent supply device ; and a memory which is configured to store conductivity data according to the type of additive, wherein the detergent supply device comprises: a cartridge housing in which the plurality of cartridges are detachably seated; a plurality of cartridges containing the additive respectively; an electrode sensor detecting conductivity of the additive contained in the plurality of cartridges ; and a pump extracting the additive contained in the cartridge , a cartridge housing in which the plurality of cartridges are detachably seated; a plurality of cartridges containing the additive respectively; an electrode sensor detecting conductivity of the additive contained in the plurality of cartridges ; and a pump extracting the additive contained in the cartridge , wherein the controller is configured to compare the detection value of the electrode sensor with data stored in the memory and determine a type of additive contained in the cartridge based on a detection value of the electrode sensor , wherein the electrode sensor comprises: a plurality of electrode plates which are respectively installed in the plurality of cartridges and has one surface which is installed to be in contact with the additive contained in the cartridge ; and a plurality of terminals which are installed in the cartridge housing , and installed respectively in a position facing the plurality of electrode plates , wherein the electrode plate and the terminal are in contact with each other when the cartridge is seated in the cartridge housing . a plurality of electrode plates which are respectively installed in the plurality of cartridges and has one surface which is installed to be in contact with the additive contained in the cartridge ; and a plurality of terminals which are installed in the cartridge housing , and installed respectively in a position facing the plurality of electrode plates , wherein the electrode plate and the terminal are in contact with each other when the cartridge is seated in the cartridge housing . <EOS>