Arduino UNO + 2.4 TFT LCD Display Shield Touch Panel ILI9341+ ultrasonic sensor

I am using a “2.4 TFT LCD Display Shield Touch Panel ILI9341” with arduino uno and displaying successfully ultrasonic sensor data on tft. I would like to connect 8 ultrasonic sensors but pin 10,11,12 and 13 are working properly with tft. If I try to connect ultrasonic to pin 0 to pin 9 the display used to get blurred.

#include <NewPing.h>
#include <Adafruit_TFTLCD.h> 
#include <Adafruit_GFX.h>    
#include <TouchScreen.h>

#define PING_PIN 13 // Arduino pin for both trig and echo

//define pins of the display
#define LCD_CS A3 
#define LCD_CD A2 
#define LCD_WR A1 
#define LCD_RD A0 
#define LCD_RESET A4

//calibration of the display
#define TS_MINX 122
#define TS_MINY 111
#define TS_MAXX 942
#define TS_MAXY 890

//deifne pins of the touch screen
#define YP A3 
#define XM A2
#define YM 9
#define XP 8

//define colors using for the display
#define BLACK   0x0000
#define BLUE    0x001F
#define RED     0xF800
#define GREEN   0x07E0
#define CYAN    0x07FF
#define MAGENTA 0xF81F
#define YELLOW  0xFFE0
#define WHITE   0xFFFF

//define pin using by library

//Define Variables
long AMTRY_RD_RF_SNS_duration = 0;       
long AMTRY_RD_RF_SNS_distance = 0;
long AMTRY_RD_RF_SNS_distanceOld = 0;

NewPing sonar(PING_PIN, PING_PIN);

void setup() {


  tft.begin(0x9341);  // SDFP5408  {NEED TO CHECK}
  //setting background of the display
  tft.setRotation(4);   //rotation of the display  {NEED TO CHECK}
  tft.fillScreen(BLACK);  //color of the display

   tft.setTextSize(2);       //text size
  tft.setTextColor(YELLOW); //text color
  tft.setCursor(5,15);      //point of the text
  tft.print("Diagnostics for Robot"); //print the text


void loop() {

delay(50); // Wait 50ms between pings (about 20 pings/sec). 29ms should be the shortest delay

//unsigned int uS =; // Send ping, get ping time in microseconds (uS).

AMTRY_RD_RF_SNS_distance = sonar.ping_cm();

    getDistance(AMTRY_RD_RF_SNS_distanceOld, BLACK);
    getDistance(AMTRY_RD_RF_SNS_distance, WHITE);

  AMTRY_RD_RF_SNS_distanceOld = AMTRY_RD_RF_SNS_distance;

//Serial.print("Ping: ");
//Serial.print(sonar.ping_cm()); // convert time into distance


void getDistance(long AMTRY_RD_RF_SNS_distance, int color){

  tft.setCursor(10, 50);

  if(AMTRY_RD_RF_SNS_distance > 10) {
  //   tft.print(AMTRY_RD_RF_SNS_distance);
     tft.print("Turn Right ");
  else {}

NEED HELP with pin 0 to 9 and A0 to A5 !

Post a wiring diagram of your setup!

In the code you have pins defined for the touchscreen but not used in the actual code. And you have defined them twice with different pins.

NEED HELP with pin 0 to 9 and A0 to A5 !

According to the code you use pins A0 to A4 for the LCD. As I already wrote: we need a wiring diagram!

If I try to connect ultrasonic to pin 0 to pin 9 the display used to get blurred.

Define what "blurred" means or better: make a picture of a "blurred" screen and post it.