1. Set the hardness
Most automatic machines have a water hardness setting (often in °dH, or levels 1–4). Enter your official figure or test result; the machine then warns you at the right time.
2. Use the filter, if your machine has one
Replace it as the manufacturer says; an old filter does nothing.
3. Use the manufacturer's descaler
Machine makers specify their descaler because some acids can damage seals or aluminium parts. Check your manual before using vinegar.