Problem with Webserver And LCD

Hey Guys, i´m new in this Forum and want to say Hello! My English isn´t the best! Sorry! I bought the Arduino Duemilanove and the Ethernet Shield. Then i run the Examples an everything was right. Now i modified the Webbrowser Example.
I pluged a thermo sensor on the analog input and show in the Webbrowser what Temperature it is. Thats fine!
If I modified the LCD Example the LCD shows also the Temperatur. But when i copy the code in the Ethernet example, it doesn´t work. I hope you understand me :slight_smile: I post the code and maybe you see whats wrong.

 * Web Server
 * A simple web server that shows the value of the analog input pins.
#include <LiquidCrystal.h>
#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 178, 47 };
Server server(80);
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

float temp;
float widerstand;
float platzhalter;
float platzhalter2;
int analogpin=0;
void setup()
  Ethernet.begin(mac, ip);


void loop()
  Client client = server.available();
  if (client) {
    // an http request ends with a blank line
    boolean current_line_is_blank = true;
    while (client.connected()) {
      if (client.available()) {
        char c =;
        // if we've gotten to the end of the line (received a newline
        // character) and the line is blank, the http request has ended,
        // so we can send a reply
        if (c == '\n' && current_line_is_blank) {
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          // output the value of each analog input pin
            client.print("Die Temperatur betraegt ungefaehr: ");
            temp = 5.0 / 1023.0;
            platzhalter2 = temp *platzhalter;
            widerstand = 400.0 * platzhalter2;
            platzhalter = widerstand - 773.3;
            temp = platzhalter / 9.185;
            client.print(" Grad Celsius      ");
        if (c == '\n') {
          // we're starting a new line
          current_line_is_blank = true;
        } else if (c != '\r') {
          // we've gotten a character on the current line
          current_line_is_blank = false;
    // give the web browser time to receive the data

With this code, the webbrowser does his job,but the LCD does not!
Hope you can help. Thanks, Ruediger

I think the Ethernet shield uses digital pins 10, 11, 12, and 13, which conflict with your LCD using 10, 11, and 12 as well. As the shield is hard to change, you will probably want to move those LCD pins elsewhere.

Don't forget to change your sketch to reflect the change.

@EmilyJane, thank you very very much. Now it works!!! It was so simple,but i didn´t see it. Thank you! Yours Ruediger