Programming HELP!

Hai guys…
i need some comment and suggestion for my programming…
i making a dryer machine… i use a lcd, keypad, SHT75, and DS18B20…
here is the program that i want to ask for :

if (condition==9)
  {
  humidity = sht1x.readHumidity();
  temp_c = sht1x.readTemperatureC();
  sensors.requestTemperatures();
  float tempC1  = sensors.getTempC(Thermometer1);
  float tempC4  = sensors.getTempC(Thermometer4);
  float tempC10 = sensors.getTempC(Thermometer10);

  T1  = tempC1;
  T4  = tempC4;
  T7  = temp_c;
  T10 = tempC10;
  
  total = T1 + T4 + T7 + T10;      // summing the total measure temperature
  average = total / 4;    
  
  // printing the measure sensor on the LCD   
  lcd.clear();
  lcd.setCursor(0, 0); 	 
  lcd.print("T: ");
		
  lcd.setCursor(4, 0);
  lcd.print(tempC1);
  lcd.print((char)223);
  lcd.print("C ");
 
  lcd.setCursor(13, 0);
  lcd.print(tempC4);
  lcd.print((char)223);
  lcd.print("C");
  
  lcd.setCursor(4, 1);
  lcd.print(temp_c);
  lcd.print((char)223);
  lcd.print("C ");
  
  lcd.setCursor(13, 1);
  lcd.print(tempC10);
  lcd.print((char)223);
  lcd.print("C");
  
  lcd.setCursor(0, 2);
  lcd.print("Average:");
  lcd.setCursor(10, 2);
  lcd.print(average);
  lcd.print((char)223);
  lcd.print("C   ");
  
  lcd.setCursor(0, 3);
  lcd.print("RH: "); 
  lcd.setCursor(5, 3);
  lcd.print(humidity);
  lcd.print("%         ");
  delay(5000);
  
  if (Tdigit > average) 
    {
    digitalWrite(OMRONPin, HIGH);
    delay(100);
    condition=10;
    }
  else //if (Tdigit <= average)
    {
    digitalWrite(OMRONPin, LOW);
    delay(100);
    condition=10;
    }
  }
  
  
  if (condition==10)
  {
  humidity = sht1x.readHumidity();
  temp_c = sht1x.readTemperatureC();
  sensors.requestTemperatures();
  float tempC1  = sensors.getTempC(Thermometer1);
  float tempC4  = sensors.getTempC(Thermometer4);
  float tempC10 = sensors.getTempC(Thermometer10);

  T1  = tempC1;
  T4  = tempC4;
  T7  = temp_c;
  T10 = tempC10;
  
  total = T1 + T4 + T7 + T10;      // summing the total measure temperature
  average = total / 4; 

  lcd.clear();
  lcd.setCursor(0, 0); 	 
  lcd.print("T: ");
  lcd.setCursor(4, 0);
  lcd.print(tempC1);
  lcd.print((char)223);
  lcd.print("C ");
 
  lcd.setCursor(13, 0);
  lcd.print(tempC4);
  lcd.print((char)223);
  lcd.print("C");
  
  lcd.setCursor(4, 1);
  lcd.print(temp_c);
  lcd.print((char)223);
  lcd.print("C ");
  
  lcd.setCursor(13, 1);
  lcd.print(tempC10);
  lcd.print((char)223);
  lcd.print("C");
  
  lcd.setCursor(0, 2);
  lcd.print("Average:");
  lcd.setCursor(10, 2);
  lcd.print(average);
  lcd.print((char)223);
  lcd.print("C   ");
  
  lcd.setCursor(0, 3);
  lcd.print("RH: "); 
  lcd.setCursor(5, 3);
  lcd.print(humidity);
  lcd.print("%         ");    
  delay(5000);
  
  if (RHdigit > humidity)
    {
    digitalWrite(relayCWPin, HIGH);
    delay(100);
    condition=9;
    }
  else //if (RHdigit <= humidity)
  {
    digitalWrite(relayCCWPin, HIGH);
    delay(100);
    condition=9;
  }
  }

Moderator edit: please use the # icon to put code into a code box.

NOTE : RHdigit and Tdigit come from keypad…and it doesn’t has any problem

this part of programming has some problem…after several second/minuet the lcd gone blank…
especially when a pin is get trigger…any suggestion what is the problem…

Too much RAM usage?

Impossible to tell with such a small fragment.