Print output on 16x2 LCD and Serial Monitor I'm trying to print an int on both an LCD and the Serial Monitor, but its only being displayed on the LCD. The Serial Monitor is printing question marks.

Here is my Arduino code:

#include &lt;LiquidCrystal.h&gt;
LiquidCrystal lcd(1, 2, 4, 5, 6, 7);
int x = 10;

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

void loop()
{
  x++;
  lcd.setCursor(0, 0);
  lcd.print(x);
  Serial.print(x); // print Serial
}
If you are using clasical UNO, then pins 0 and 1 are Serial. Declaring lcd(1,... make LCD use the pin 1 too, so Serial is confused and garbled.

Use other pins for lcd and adjuct the wires acordingly.