(ATMEGA 2560+ethernet shield )master+ (Uno+Lcd Shield) slave. Lcd.print problem

Hello everyone;
I am on a project that will send e-mails relayed from readings from Mega’s digital pins and DS1307 and an SD are connected to it(to Mega)

I assigned pinMode 4 and 10 to OUTPUTs. It was working quite good until i connect another Arduino with LCD Shield on it.

Mega and Uno are connected with UART(Serial) as you see;

Mega18(TX) ---->Uno 0(with hacking LCD shield’s 0th(RX) pin with a jumper)
Mega19(RX) ---->Uno 1(Tx)

but i could not figure out how i am going to lcd.print with the light of “int i” datas like

if i == 1
"lcd.print(“first barrel is empty”);
else if i == 2
"lcd.print(“second barrel is empty”); here is my slave(Uno+Lcd shield) code
.
.
.

#include <LiquidCrystal.h>
#include <SoftwareSerial.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
LiquidCrystal lcd(8,9,4,5,6,7); 

SoftwareSerial softSerial(0, 1);
int i;

void setup(){
  Serial.begin(115200);
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("  Hosgeldiniz!  ");
  delay(5000);
  lcd.clear();
  lcd.home();
}

void loop(){
  if (softSerial.available()){
// Read one value from the soft serial buffer and store it in the variable com 
    int i = softSerial.read(); 
// Act according to the value received 
    if (softSerial.read() == 0){ 
      lcd.setCursor(0,0);
      lcd.print("Product empty:");
      lcd.setCursor(0,1);
      lcd.print("Profi Forte");
      delay(2000);
      lcd.clear();
    }
    else if (softSerial.read() == 1){ 
      lcd.setCursor(0,0);
      lcd.print("Product empty:");
      lcd.setCursor(0,1);
      lcd.print("Clax 200");
      delay(2000);
      lcd.clear();      
    }
    else if (softSerial.read() == 2){

and my master code with the part of int i s

  DateTime now = RTC.now();
  
  sensor[0] = digitalRead(28);
  sensor[1] = digitalRead(29);
  sensor[2] = digitalRead(30);
  sensor[3] = digitalRead(31);
  sensor[4] = digitalRead(32);
  sensor[5] = digitalRead(33);
  sensor[6] = digitalRead(34);
  sensor[7] = digitalRead(35);
  sensor[8] = digitalRead(36);
  sensor[9] = digitalRead(37);
  
  for(int i =0 ; i<=9 ;i++){
    Serial.println("***           Digital             ***");
    Serial.println("          ");
    Serial.print("count");
    Serial.print(i);
    Serial.print(" = ");
    Serial.println(count[i]);
    Serial.print("sensor");
    Serial.print(i);
    Serial.print(" = ");
    Serial.println(sensor[i]);
    delay(100);
    }
    if(sensor[0] == 1){
      count[0]++;
    }
    if(sensor[1] == 1){
      count[1]++;
    }
    if(sensor[2] == 1){
      count[2]++;
    }
    if(sensor[3] == 1){
      count[3]++;
    }
    if(sensor[4] == 1){
      count[4]++;
    }
    if(sensor[5] == 1){
      count[5]++;
    }
    if(sensor[6] == 1){
      count[6]++;
    }
    if(sensor[7] == 1){
      count[7]++;
    }
    if(sensor[8] == 1){
      count[8]++;
    }
    if(sensor[9] == 1){
      count[9]++;
    }
    for(int i =0 ; i<=9 ; i++){
      if(count[i] == 35){          /////MAIL YAZ
        if(sendEmail(i))
        Serial.println(F("Email sent"));
        else
        Serial.println(F("Email failed"));
      }
      if((count[i] >= 40) || (sensor[i] == 0)){
        count[i] = 0;
      }
      if(count[i] >= 39){
        File dataFile = SD.open("datalog.txt", FILE_WRITE);
        // if the file is available, write to it:
        if(dataFile){
          if(i == 0){
            my
            dataFile.println("Product1 has not been changed.");
            }else if(i == 1){
              dataFile.println("Product2 has not been changed.");
              }else if(i == 2){

why do you use SoftwareSerial on hardware serial pins?

the sketch i examined used like this and i changed them to rx tx (0 1

// Define a Software Serial object and the used pins
SoftwareSerial softSerial(8, 9);

pins 0 and 1 are for "Serial"