Sometimes the magnet can get stuck with limescale and then doesn't move with the water, making the machine think the tank is either always full or always empty. Check if the magnet is loose, it should move up and down if you rotate the empty water tank. If the magnet moves freely but the same error remains, then it's likely a problem with the sensor that detects the magnet, or possibly the control board.