The LCD doesn't display the words typed I've tried this code on an LCD, and instead of displaying "Hello World!" it displays what is shown on the picture.

Code:

#include &lt;LiquidCrystal.h&gt;

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  lcd.begin(16, 2);
}

void loop() {
  lcd.print("Hello World!");
  delay(500);
  lcd.clear();
  delay(500);
}
Try the following


Double-check the LCD soldering 
Double-check your wiring
Ensure that the pins you are using for your LCD are not assigned to some other function. This caused jumbled, random characters here.