communication problem in ethernet sheild w5100

Hi,
iam using arduino uno r3 board.My project is to sense temperature and humidity using dht22 sensor and stored the values in sd card once in a minute and show the result in one of the ip address.i done the programming, but i doesn’t work for 24 hrs.also some problem in storing in sd card.i struck on it for last 1 week.so pls anyone help me to troubleshoot the problem as soon as possible. Hereby iam attaching the code.

original_arduino_pgm.ino (3.42 KB)

sruthy: i struck on it for last 1 week.so pls anyone help me to troubleshoot the problem as soon as possible.

I look at your code and see at once:

int chipSelect = 4;
// DHT dht(DHTPIN, DHTTYPE);
LiquidCrystal lcd(3,4,5,6,7,8);

So you are using pin-4 for two different things (SD and LCD) at the same time. That cannot work.

As the chipSelect is fixed to pin-4 with the Ethernet shield stacked on your Arduino UNO, you most likely want to use another pin for the lcd.

These pins should be not in use in your circuit at the moment: A2, A3, A4, A5

So what about:

LiquidCrystal lcd(3,A2,5,6,7,8);