   pinMode(MISOpin, OUTPUT);
   pinMode(clk, OUTPUT);
   pinMode(PP, OUTPUT);
-
-  //Initialize communication processes
-  Serial.begin(9600); //Sets baud rate
   
   lcd.begin(16,2); //Initializes LCD with # of rows and columns
 
-  //Initialize SD card
-  LCDwrite("Initializing", "SD Card");
-  if(!SD.begin(sdSS)){ //If the SD card can't be initialized
-  LCDwrite("Card failed ", "Fix problem"); 
-  while (1); //Freeze everything until it can be
+  if (!SD.begin(SD_CS_PIN)) {
+    LCDwrite("Failed to Detect", "SD Card");
+    while(1);
   }
   LCDwrite("SD Card", "Initialized");
-  resultFile = SD.open(fileName, FILE_WRITE); //Open file that will be written to
-  if(! resultFile){
-  LCDwrite("Error opening", fileName + "    "); //If the file can't be opened
-  while(1); //Freeze everything until it can be
-  }
 
   //Finish initialization processes
   ads1115.begin(); //Initializes ADC
-  LCDwrite("",""); //Print nothing to LCD to reset it
+  LCDclear();
 }
 
 void loop() {

}

void SDwrite() {
  digitalWrite(lcdSS, LOW); //Sets LCD SS pin to low
  digitalWrite(sdSS, HIGH); //Sets SD SS pin to high
  resultFile.println(resultmV + ","); //writes to SD card
}


  lcd.setCursor(0,1);
  lcd.print(s2);
}

void LCDclear(){
  LCDwrite("","");
  }

void readADS() {
  cVoltage = ((ads1115.readADC_Differential_0_1())*0.1875);
