Please Advise Arduino SPI command to EEPROM

Dear All
Please advise me , My project is used arduino uno connected with board which EEPROM 25AA256 by SPI command and check register WEL (RDSR) before and after write enable (WREN)
but i try to create program but result is not right. please help or advise me .

Project info :
Data out pin 11
Data In pin 12
CLK pin 13
Chip Select pin 10

Operation : type “CS0” send SPI command WRDI to reset
type “CS1” send SPI command RDSR to read register observed WEL
type “CS2” send SPI command WREN to write enable

Result

Setup START
PinSetup
Setup Pin to High
Setup END
WRDI
Val2 After = [00]
RDSR
Val2 After = [7E]
RDSR
Val2 After = [FF]
RDSR
Val2 After = [00]
RDSR
Val2 After = [00]
RDSR
Val2 After = [00]
RDSR
Val2 After = [F0]
RDSR
WREN
Val2 After = [FF]
RDSR
Val2 After = [00]
RDSR
Val2 After = [FE]
RDSR

COde

#include<SPI.h>
#include "Wire.h"

int CS0 = 10;
int CS1 = 9;
int CS2 = 8;
int CS3 = 7;
int CS4 = 6;
int CS5 = 5;
#define DATAOUT 11
#define DATAIN 12
#define SPICLK 13

// eeprom commands
#define WREN 6
#define RDSR 5
#define WRDI 4


byte val1;
byte val2;
int v1;
int v2;


char fmt[16]; // Some place to sprintf into

static void _serial_command_check() {
  static const char cmdCS0[]         = "CS0";
  static const char cmdCS1[]         = "CS1";
  static const char cmdCS2[]         = "CS2";
  static const char cmdName[]         = "Name";
  static const char msgError[]        = "ERROR";
  static const char msgConnError[]    = "C.ERR";
  static const char msgOk[]           = "OK";
  static const char msgName[]         = "SPI_Module";
  static const char msgCS0[]          = "WRDI";
  static const char msgCS1[]          = "RDSR";
  static const char msgCS2[]          = "WREN";

  static uint8_t savedData[64];
  static uint8_t savedDataIdx = 0;
  uint8_t incomingByte;
  float flVal;
  char msgString[32];
    
  while (Serial.available() > 0) {

    incomingByte = (uint8_t) Serial.read();

    savedData[savedDataIdx] = incomingByte;
    savedDataIdx++;

    if ((savedData[savedDataIdx - 1] == '\n') || (savedData[savedDataIdx - 1] == '\r')) {
      // compare commands
      if (0 == strncmp(savedData, cmdName, strlen(cmdName))) {
        // get device name
        strcpy(msgString, msgName);
      } else 
      if (0 == strncmp(savedData, cmdCS0, strlen(cmdCS0))) {
        // get CS0
        digitalWrite(CS0,LOW);
        SPI.transfer(WRDI);
        digitalWrite(CS0,HIGH);
        delay(500);
        strcpy(msgString, msgCS0);
      } else
      if (0 == strncmp(savedData, cmdCS1, strlen(cmdCS1))) {
        // get CS1
        //strcpy(msgString, msgCS1);
        digitalWrite(CS0,LOW);
        SPI.transfer(RDSR);
        v2=SPI.transfer(0);
        digitalWrite(CS0,HIGH);
        delay(20);
        Serial.print("Val2 After = [");
        sprintf(fmt, "%02X", v2);
        Serial.print(fmt);
        Serial.println("]");
        delay(500);
        strcpy(msgString, msgCS1);
      } else
      if (0 == strncmp(savedData, cmdCS2, strlen(cmdCS2))) {
        // get CS2
        //strcpy(msgString, msgCS2);
        digitalWrite(CS0,LOW);
        SPI.transfer(WREN);
        digitalWrite(CS0,HIGH);
        delay(500);
        strcpy(msgString, msgCS2);
        
      } else
                               
      {
        // wrong command
        strcpy(msgString, msgError);
      }
      Serial.println(msgString);
      savedDataIdx = 0;
    }
    if (sizeof(savedData) == savedDataIdx) {
      // data buffer overflow
      savedDataIdx = 0;
    }
  }
}      




void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  while (!Serial) ;
  
  Serial.println(F("Setup START"));
  SPI.begin();
  delay(500);
  Serial.println(F("PinSetup"));
  pinMode(CS0,OUTPUT);
  pinMode(CS1,OUTPUT);
  pinMode(CS2,OUTPUT);
  pinMode(CS3,OUTPUT);
  pinMode(CS4,OUTPUT);
  pinMode(CS5,OUTPUT);
  pinMode(DATAOUT,OUTPUT);
  pinMode(DATAIN,INPUT);
  pinMode(SPICLK,OUTPUT);
  delay(500);
  Serial.println(F("Setup Pin to High"));
  digitalWrite(CS0,HIGH);
  digitalWrite(CS1,HIGH);
  digitalWrite(CS2,HIGH);
  digitalWrite(CS3,HIGH);
  digitalWrite(CS4,HIGH);
  digitalWrite(CS5,HIGH);
  Serial.println(F("Setup END"));
  delay(1000);
  
}

void loop() {
  // put your main code here, to run repeatedly:

  _serial_command_check();
}

PS . Sorry for my English Skill

  pinMode(DATAOUT,OUTPUT);
  pinMode(DATAIN,INPUT);
  pinMode(SPICLK,OUTPUT);

You must not touch the SPI pins after the SPI.begin() call.

Get rid of all the delay() calls, you don't need them.

Post a complete wiring diagram of your setup.