Help on a US sensor and a display

I am doing an aroach signal, and I wanted that when an object reaches certain distance some LEDs light on and all the time I can see the distance through a an LCD display with a LC_I2 module, the code does get compiled but after uploading, the leds do work but the display doesn´t, what could it be?

#include <LiquidCrystal_I2C.h>
#include<Wire.h>

LiquidCrystal_I2C lcd(0x27,16,2);

int ledrojo=6;
int lednaranja=7;
int ledverde=8;
long distancia;
long tiempo;
int led;
void setup(){
Serial.begin(9600);
pinMode(11, OUTPUT);
pinMode(12, INPUT);
pinMode(ledrojo, OUTPUT);
pinMode(lednaranja, OUTPUT);
pinMode(ledverde, OUTPUT);

lcd.init();
lcd.backlight();
lcd.clear();
lcd.setCursor(3,0);
lcd.print(“BIENVENIDO”);
delay(3000);
}

void loop(){
digitalWrite(11 ,LOW);
delayMicroseconds(10);
digitalWrite(11, HIGH);
delayMicroseconds(10);
tiempo=pulseIn(12, HIGH);
distancia= int(0.017*tiempo);
if (distancia>40){
led=1;
digitalWrite(lednaranja,LOW);
digitalWrite(ledrojo,LOW);
}

lcd.clear();
lcd.setCursor(3,0);
lcd.print(“Distancia”);
lcd.setCursor(5,1);
lcd.print(distancia); // Mensaje a despegar
Serial.println(distancia);
delay(200);

if (distancia<=40&&distancia>20){
led=2;
digitalWrite(ledverde,LOW);
digitalWrite(ledrojo,LOW);
}
if (distancia<=20){
led=3;
digitalWrite(ledverde,LOW);
digitalWrite(lednaranja,LOW);
}
switch(led){
case 1:
digitalWrite(ledverde,HIGH);
break;
case 2:
digitalWrite(lednaranja,HIGH);
break;
case 3:
digitalWrite(ledrojo,HIGH);
break;
}
delay(50);

}

Does the lcd work with just a simple example sketch that would be provided with the library?

If not does the I2C scanner find it?

How can I get to know that?
I am pretty new with this

oscar8as:
How can I get to know that?

I2C scanner in previous post is a clickable link. Go there, get the sketch, run it, see if it finds your LCD.

I did, and it seems like it does find my LCD, what else could it be?

You checked the sda/scl wires are the right way round?-easy to get them back to front.

Otherwise, no idea, sorry.

Yes, they are well connected, no worries thanks for the help!

So you got an I2C address reported by the I2C scanner - does that match the address in your code? You use 0x27; I have some that are indeed on that address, others at 0x3F, or maybe even other addresses. The I2C scanner tells you which addresses are used on your bus.

Did you try to run any of the LCD example code? (again with the correct I2C address for your display).