LCD problem

Hello everybody. I have a problem with my project. I’ve done the coding but I have some problem with my LCD. It didnt turn out as normally it would. Attached is my coding and also the image of the LCD

#include <Servo.h>
#include <LiquidCrystal.h>
#include <Keypad.h> 
#include <IRremote.h>    

int angle = 0;
int angle2 = 0;
int RECV_PIN = 13; 
int val;                //rotation angle
decode_results results;

IRrecv irrecv(RECV_PIN);

Servo servoIR; //for IR
Servo servoK; //for keypad
//lcd declaration
LiquidCrystal lcd (A0,A1,A2,A3,A4,A5);

//define keypads
const byte ROWS = 4; //four rows
const byte COLS = 3; //three columns
char Keys[ROWS][COLS] = {
  {'1','2','3'},
  {'4','5','6'},
  {'7','8','9'},
  {'*','0','#'}
};
byte rowPins[ROWS] = {8, 7, 6, 5}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {4, 3, 2};//connect to the column pinouts of the keypad
//initialize an instance of class NewKeypad
Keypad customKeypad = Keypad( makeKeymap(Keys), rowPins, colPins, ROWS, COLS);

 
 void setup() 
{ 
 
 servoK.attach(9); //servo keypad to pin 9
 Serial.begin(9600);//IR receiver
 irrecv.enableIRIn(); // Start the receiver
 servoIR.attach(10);     //servo pin
 
 //lcd display
 pinMode(A0,OUTPUT);
 pinMode(A1,OUTPUT);
 pinMode(A2,OUTPUT);
 pinMode(A3,OUTPUT);
 pinMode(A4,OUTPUT);
 pinMode(A5,OUTPUT);
 
 // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);   
} 
void loop() 
{ 

//keypad
char Key = customKeypad.getKey();
lcd.setCursor(0,0);
lcd.print("Group 3");
lcd.clear();
if(Key!=NO_KEY){        
        
       lcd.setCursor(0,1);
       lcd.clear();
       lcd.print("Sample=");
       switch(Key){
        case '1':
          lcd.print("1");
          servoK.write(0); //DECIDE THE SPEED
          delay(100);
          servoK.write(15); //
          delay(100);
          break;
          case '2':
          lcd.print("2");
          servoK.write(20);
          delay(100);
          servoK.write(30);
          delay(100);
          break;
         case '3':
          lcd.print("3");
          servoK.write(50);
          delay(100);
          servoK.write(90);
          break;
          
         default:
         lcd.print("Choose 1 or 2 or 3");
          break;        
       }

}
if (irrecv.decode(&results)) {
  
    lcd.setCursor(0,1);
    lcd.clear();
    Serial.println(results.value, HEX);
    switch(results.value) {
    
    case 0xFF30CF: //1-RED
    Serial.println("RED");
    lcd.print("RED");
    servoIR.write(20);  //SPECIFY ANGLE AFTER CALCULATION
    delay(1000);
    servoIR.write(90);  //STOP THE MOTOR
    break;

    case 0xFF18E7: //2-ORANGE 
    Serial.println("ORANGE");
    lcd.print("ORANGE");
    servoIR.write(25);
    delay(1000);
    servoIR.write(90);
    break;

    case 0xFF7A85: //3-YELLOW
    Serial.println("YELLOW");
    lcd.print("YELLOW");
    servoIR.write(30);
    delay(1000);
    servoIR.write(90); //MAKE IT STOP
    break;
    
    case 0xFF10EF: //4-GREEN
    Serial.println("GREEN");
    lcd.print("GREEN");
    servoIR.write(35);
    delay(1000);
    servoIR.write(90);
    break;

    case 0xFF38C7: //5-BLUE
    Serial.println("BLUE");
    lcd.print("BLUE");
    servoIR.write(40);
    delay(1000);
    servoIR.write(90);
    break;

     case 0xFF5AA5: //6-INDIGO
     Serial.println("INDIGO");
     lcd.print("INDIGO");
     servoIR.write(45);
     delay(1000);
     servoIR.write(90);
     break;

     case 0xFF42BD: //7-VIOLET
     Serial.println("VIOLET");
     lcd.print("VIOLET");
     servoIR.write(130);
     delay(1000);
     servoIR.write(90);
     break;
     
    default:
    Serial.println("Other button");
    Serial.println(results.value, HEX);
}

  servoIR.write(val);
  irrecv.resume(); // Receive the next value
  delay(20); 
  }
}

Have you ever had this display working properly with basic library example “Hello World”??

If so, I would think that the Arduino pins (A0,A1,A2,A3,A4,A5) are not connected to the correct pins of the lcd.

Can you provide a photograph which shows the connections between the arduino and the lcd?

OP’s image
2c1010059f2f527b6ee8a655e654d0a562014de9.jpg