if(d<50) { digitalWrite(lds,HIGH); tone(10,1000); lcd.setCursor(2,0); lcd.print("LEDS ENCENDIDO"); delay(2000); lcd.clear(); } else { digitalWrite(lds, LOW); noTone(10); lcd.setCursor(2,1); lcd.print("LEDS APAGADO"); delay(2000); lcd.clear(); } } 93