Pin 10, 11 arduino UNO connected with ethernet shield always reading HIGH

hello guys… i have arduino UNO that was attached with Ethernet Shield. I want to open or give pin 10, 11 a HIGH value. But even i do give those pin LOW, its always reading HIGH.

Completed code :

#include <SPI.h>
#include <Ethernet.h>

#define PIN10 10
#define PIN11 11
#define PIN12 12
#define PIN13 13
/**
 * Custom Mac address
 */
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
/**
 * Static ip address(client, in our case 
 * is arduino ethernet shield)
 */
IPAddress ip( 192, 168, 0, 107 ); 
IPAddress ipServer( 192, 168 ,0 ,101 ); 
EthernetClient client;

// connect with custom port = 5151
EthernetServer server = EthernetServer( 5151 );

char pinFromAction[5];
int pinFromActionCounter = 0;

void doGetTransactionData ( EthernetClient client ) {
  client.println("GET /auto-fire-alarm/public/reading/transaction HTTP/1.0");
  client.print("Host: ");
  client.print("192.168.0.101 ");
  client.println("\r\n");
  client.println("Connection: close");
  Serial.println("CALLING....");
}

void readDataActionFromServer ( char string, int counter ) {
  
  if ( counter == 5 || counter == 6 || counter == 8 ) {
    pinFromAction[ pinFromActionCounter++ ] = string;
    Serial.println( string );
  }

  if ( string == 'E' ) {
    if ( pinFromAction[0] == '1' && pinFromAction[1] == '0' ) {
      Serial.println( "Pin 10 activated" );
      //digitalWrite( PIN10, HIGH );
    }
  }
  
}

void setup() {
  // setup code here, run only once
  Serial.begin( 9600 );

  pinMode( PIN10, OUTPUT );
  pinMode( PIN11, OUTPUT );
  pinMode( PIN12, OUTPUT );
  pinMode( PIN13, OUTPUT );

  digitalWrite( PIN10, LOW ); // <------------------ this always reading high
  digitalWrite( PIN11, LOW ); // <------------------ this always reading high
  digitalWrite( PIN12, HIGH ); // <-------------- this always reading low
  digitalWrite( PIN13, HIGH ); // <-------------- this always reading low

  // Using static IP
  Ethernet.begin( mac, ip );
  server.begin();
  Serial.println("Server Started");
  
  delay( 1000 );
  
  Serial.println( "Connecting...." );
  Serial.println( Ethernet.localIP() );

  if ( client.connect( ipServer, 80 ) ) {
    Serial.println( "Connected" );
    /**
     * ----------------------
     * Testing GET request
     * ---------------------
     *
    client.println("GET /auto-fire-alarm/public/temperature/insert/50 HTTP/1.0");
    client.println("Host: 192.168.0.101 \r\n");
    client.println("Connection: close");
    */
    doGetTransactionData( client );
  }
  else {
    Serial.println( "Failed to connect with server" );
  }
    
  
}

void loop() {
  /**
   * ------------------------------------------
   * Section : Getting response from Server Side
   * ------------------------------------------
   */
  Serial.println( "Waiting for a client to connect" ); 
  EthernetClient clientServer = server.available();

  if(clientServer) {
    
    Serial.print("Connected to a clientServer : ");
    int counter = 0;
    while(clientServer.available()) {             
      
        char c = clientServer.read();
        readDataActionFromServer( c, counter );
        counter++;
        
    }
    
    if(clientServer.connected()) {
        // after finish loop, call again readDataActionFromServer
        //readDataActionFromServer( 'E', counter );
        Serial.println("Client(server side) trying to connect");
        
    }  
    
    delay(5);
    clientServer.stop();
    Serial.println("clientServer is disconnected");

  }

  delay(2000);
  
}

Which Ethernet shield do you have ? It is common for Arduino pins 10 and 11 to be used to control Ethernet shields

To quote from https://www.arduino.cc/en/Main/ArduinoEthernetShieldV1

Arduino communicates with both the W5100 and SD card using the SPI bus (through the ICSP header). This is on digital pins 10, 11, 12, and 13 on the Uno and pins 50, 51, and 52 on the Mega. On both boards, pin 10 is used to select the W5100 and pin 4 for the SD card. These pins cannot be used for general I/O.

Ethernet shield uses SPI for communication. That uses pins 10, 11, 12, and 13. You can't use those for normal IO while using the shield.

Thanks both of you Delta_G and UKHeliBob. Your answer correct!. After change to pin 4,5,6 and 7 everything is running as expected now. I’m used W5100 ethernet shield.