Trying to reduce the use of SRAM

and more code:

void processClient()
{
  digitalWrite(10, LOW);
  char* params;
  if (params = e.serviceRequest())
  {
    Serial.write(params);
    strcpy_P(buffer, (char*)pgm_read_word(&(string_table[0])));
    e.print(buffer);
    strcpy_P(buffer, (char*)pgm_read_word(&(string_table[1])));
    e.print(buffer);
    strcpy_P(buffer, (char*)pgm_read_word(&(string_table[2])));
    e.print(buffer);
    photocellReading = analogRead(photocellPin);
     e.print(photocellReading);
      //strcpy_P(buffer, (char*)pgm_read_word(&(string_table[1])));
    //e.print(buffer);
    float h = dht1.readHumidity();
    float t = dht1.readTemperature();
    if (isnan(t) || isnan(h)) {
      strcpy_P(buffer, (char*)pgm_read_word(&(string_table[3])));
    e.print(buffer);
      
    }
    else {
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[1])));
    e.print(buffer);
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[4])));
    e.print(buffer);
      e.print(h);
      
    strcpy_P(buffer, (char*)pgm_read_word(&(string_table[5])));
    e.print(buffer);
      
      e.print(t);
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[1])));
    e.print(buffer);
     
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[6])));
    e.print(buffer);
     
      int timeSince = repetitionCounter/20;
      e.print(timeSince);
      strcpy_P(buffer, (char*)pgm_read_word(&(string_table[21])));
    e.print(buffer);
      
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[1])));
    e.print(buffer);
      byte windowState = EEPROM.read(5);
      if (windowState == 1)
      {
        
         strcpy_P(buffer, (char*)pgm_read_word(&(string_table[7])));
    e.print(buffer);
      }
      else 
      {
       
         strcpy_P(buffer, (char*)pgm_read_word(&(string_table[8])));
    e.print(buffer);
      }
    }
    
     strcpy_P(buffer, (char*)pgm_read_word(&(string_table[1])));
    e.print(buffer);
        
     strcpy_P(buffer, (char*)pgm_read_word(&(string_table[9])));
    e.print(buffer);
    
    strcpy_P(buffer, (char*)pgm_read_word(&(string_table[10])));
    e.print(buffer);/*
    strcpy_P(buffer, (char*)pgm_read_word(&(string_table[11])));
    e.print(buffer);
    
    strcpy_P(buffer, (char*)pgm_read_word(&(string_table[12])));
    e.print(buffer);*/
    strcpy_P(buffer, (char*)pgm_read_word(&(string_table[1])));
    e.print(buffer);
    if (strcmp(params, "?valve=on") == 0)
    {  
      digitalWrite(valvePin, HIGH);
      
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[13])));
    e.print(buffer);

    }
    else if (strcmp(params, "?valve=off") == 0)
    {
      digitalWrite(valvePin, LOW);
      
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[14])));
     e.print(buffer);
       Serial.write(buffer);
   
    }
    else if (strcmp(params, "?fan=on") == 0)
    {
      digitalWrite(2, HIGH);
      
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[15])));
    e.print(buffer);
    }
    else if (strcmp(params, "?fan=off") == 0)
    {
      digitalWrite(2, LOW);
      
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[16])));
    e.print(buffer);
    }
     /*
    else if (strcmp(params, "?vent=on") == 0)
    {
      digitalWrite(4, HIGH);
      
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[19])));
    e.print(buffer);
    }
     else if (strcmp(params, "?vent=off") == 0)
    {
      digitalWrite(4, LOW);
      
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[20])));
    e.print(buffer);
    }
    
    
    else if (strcmp(params, "?win=on") == 0)
    {
      digitalWrite (motorRun, HIGH);
      unsigned long currentMotorRuntime = millis();
      EEPROM.write(3, 1);
     
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[17])));
    e.print(buffer);
    }
     else if (strcmp(params, "?win=off") == 0)
    {
      digitalWrite (motorRun, HIGH);
      digitalWrite (motorReverse, HIGH);
      EEPROM.write(4, 1);
      //e.print("<a href='?fan=on'><button style='border: 1px solid #000; border-left: 10px solid #000' type='button'>FAN IS OFF</button></a>");
       strcpy_P(buffer, (char*)pgm_read_word(&(string_table[18])));
    e.print(buffer);
    }*/
    
    e.respond();
  }
}