title: LCD doesn't work in a simulated enviroment
body: <p>I'm using Tinkercad, and since it's my first time programming an LCD I just copied the procedure to connect the pins and make it work.</p>
  <p>The thing is that it just lights up without displaying anything, I tried both wiring and unwiring the R/W pin but that doesn't work either, nothing will be displayed.</p>
  <p>What did I miss? The other functions of the code works normally.</p>
  <p>Image of the circuit:</p>
  <p><img src="https://i.stack.imgur.com/kMhQY.png" alt="Image of the circuit" /></p>
  <p>This is the code:</p>
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;LiquidCrystal.h&gt;
  
  const int pin = 0; // analog pin
  float celsius = 0, farhenheit =0; // temperature variables
  float millivolts; //Millivolts from the sensor
  int sensor;
  
  const int G_LED = 13;
  const int Y_LED = 12;
  LiquidCrystal lcd(10, 9, 5, 4, 3, 2); // Building the LCD
  
  
  void setup() {
    lcd.begin(16,2);              
    lcd.clear();                  
    lcd.setCursor(0,0);           
    lcd.print(&quot;C=&quot;);           // &quot;C=&quot;, &quot;F=&quot; and &quot;mV&quot; should be printed
    lcd.setCursor(0, 1);       // on the LCD in a column  
    lcd.print(&quot;F=&quot;);           
    lcd.setCursor(0, 2);            
    lcd.print(&quot;mV=&quot;);
    
    pinMode(G_LED, OUTPUT);
    pinMode(Y_LED, OUTPUT);
  
    Serial.begin(9600); 
  }
  
  void loop() {
    sensor = analogRead(pin);                    // Reading the value from the LM35 sensor using the A0 ingress
    millivolts = (sensor / 1023.0) * 5000;       // Converting the value in a number that indicates the millivolts
    celsius = ((sensor * 0.00488) - 0.5) / 0.01; // Celsius value (10 mV for each degree, 0°=500mV)
    farhenheit = celsius * 1.8 + 32;             // Fahrenheit value
   
    lcd.setCursor(4, 2);                         // Set the cursor at the right of &quot;mV=&quot;
    lcd.print(millivolts);                       // Print the mV value
    lcd.setCursor(4, 0);                         // Same here for °C and °F
    lcd.print(celsius);
    lcd.setCursor(4, 1);
  
    Serial.print(farhenheit);
  
    if (millivolts &lt; 700) {    // Green LED is on when the temperature is under or equal to 20° 
    // if (celsius &lt; 20) {     // Alternative
      analogWrite(G_LED, 255);
      analogWrite(Y_LED, 0); }
    else {
      analogWrite(G_LED, 0);
      analogWrite(Y_LED, 255); // Yellow LED is on when the temperature is above of 20°C
    }  
    delay(1000);
  }
  </code></pre>