#define ECHO 10
#define TRIGGER 9
const int trigPin = 9;
const int echoPin = 10;
Why are there 2 sets of trigger and echo pins defined but with the same pin numbers.
const int buzzer = 0;
Pin 0 is the hardware serial RX pin. Maybe use a different one.
Why measure the distance twice in one loop()?
float time =0;
Time should be unsigned long. That is the data type that pulseIn() returns.
In the bottom of the code, you write to the LCD then, right away, the loop starts over and you clear the LCD. The LCD displays the message for very little time (us).
lcd.print("Social Distance! At least 1.5m!!!!");
You need to pay attention to how many characters that you write to the LCD. The typical LCD libraries do not do line wrap. Also use setCursor to control where the text is printed.