A washing machine comprising: a cabinet ; a tub disposed in the cabinet to receive water; a drum rotatably disposed in the tub to contain a laundry; and a detergent supply device disposed at the cabinet to supply detergent into the tub; wherein the detergent supply device comprises: a plurality of cartridges containing detergent; a pump for suctioning detergent from the plurality of cartridges; a passage guiding detergent discharged from the pump into the tub; and a plurality of electrode sensors disposed at a side of the plurality of cartridges; wherein each of the plurality of electrode sensors comprises: an electrode plate configured for detecting electric signal; and a terminal for transmitting the electric signal detected by the electrode plate, wherein the electrode plate has a first surface contacted with detergent contained in the cartridge and a second surface connected to the terminal, characterized in that the electrode plate is disposed to have, in its upright position, a smaller width (w2) at a lower end thereof than at an upper end thereof, wherein an opening is formed at a rear wall of the cartridge, and the electrode plate is disposed to be in contact with the rear wall of the cartridge so that the first surface thereof is exposed inside the cartridge through the opening, and wherein the opening is in contact with the lower end of the electrode plate. a cabinet ; a tub disposed in the cabinet to receive water; a drum rotatably disposed in the tub to contain a laundry; and a detergent supply device disposed at the cabinet to supply detergent into the tub; wherein the detergent supply device comprises: a plurality of cartridges containing detergent; a pump for suctioning detergent from the plurality of cartridges; a passage guiding detergent discharged from the pump into the tub; and a plurality of electrode sensors disposed at a side of the plurality of cartridges; a plurality of cartridges containing detergent; a pump for suctioning detergent from the plurality of cartridges; a passage guiding detergent discharged from the pump into the tub; and a plurality of electrode sensors disposed at a side of the plurality of cartridges; wherein each of the plurality of electrode sensors comprises: an electrode plate configured for detecting electric signal; and a terminal for transmitting the electric signal detected by the electrode plate, wherein the electrode plate has a first surface contacted with detergent contained in the cartridge and a second surface connected to the terminal, characterized in that the electrode plate is disposed to have, in its upright position, a smaller width (w2) at a lower end thereof than at an upper end thereof, wherein an opening is formed at a rear wall of the cartridge, and the electrode plate is disposed to be in contact with the rear wall of the cartridge so that the first surface thereof is exposed inside the cartridge through the opening, and wherein the opening is in contact with the lower end of the electrode plate. an electrode plate configured for detecting electric signal; and a terminal for transmitting the electric signal detected by the electrode plate, wherein the electrode plate has a first surface contacted with detergent contained in the cartridge and a second surface connected to the terminal, characterized in that the electrode plate is disposed to have, in its upright position, a smaller width (w2) at a lower end thereof than at an upper end thereof, wherein an opening is formed at a rear wall of the cartridge, and the electrode plate is disposed to be in contact with the rear wall of the cartridge so that the first surface thereof is exposed inside the cartridge through the opening, and wherein the opening is in contact with the lower end of the electrode plate. <EOS>