coding help

i need help writing code for the rest of my sensors. All of the sensors are the same but i need help adding them into the progam

//#include "sd_library.h"

int temppin = 1, width, sensor;
String dataString = "";


void setup ()
{
  Serial.begin(9600);
  pinMode(temppin, INPUT);

  Serial.println("Initializing SD card..");
  pinMode(10, OUTPUT);

/*  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or no presenst");
  }*/
  Serial.println("card initialized.");
}
void loop()
{
  width = pulseIn(temppin, 100);

  for (int digitalPin = 1; digitalPin < 12; digitalPin++) {
    sensor = digitalRead(digitalPin);
    dataString += String(sensor);
    if (digitalPin < 1) {
      dataString += ",";
    }
  }
  /*
  File datefile = SD.open("datalog.txt", FILE_WRITE);

  if (dataFile) {
    dataFile.println (dataString);
    dataFile.close();
  } else {
    Serial.println("error open datalog.txt");
  }
  */
}

I have no idea what that code's supposed to do or what part of it you're having trouble with. However, I suggest you start by getting rid of all use of the String class since it can cause stability problems in versions up to 1.0.3 and can cause memory fragmentation in all versions. Nothing you're doing so far is being made any easier by the String class.

What is the code supposed to do? What part of it do you need help with?

what the code is intended to do is to log the data of 12 mlx 90614 ir temp sensors onto a sd card every .1 of a second.

I'm not familiar with a '12 mlx 90614 ir temp sensor' but I suppose there is probably more to reading it than just calling digitalRead().

Have you figured out how to read one value from one sensor?