   if (currentMillis - previousMillis >= LOG_INTERVAL) {
     previousMillis = currentMillis;
     
-    // create a filename
-    /*
-    DateTime now;
-    now = RTC.now();
-    int YR = now.year();
-    String YRs = String(YR,DEC);
-    int MO = now.month();
-    String MOs = String(MO,DEC);
-    int DY = now.day();
-    //int DY = now.minute();  //testing clear command
-    String DYs = String(DY,DEC);
-    String DATE = YRs + MOs + DYs;
-    String filename = DATE + ".CSV";
-  */
+    // 
     //collect data
     //Average repetative current and voltage readings between sampling interval
     PressureAnalogReading = PressureReadingSUM / readingCount;    
     float P = PressureAnalogReading;
     lcd.clear();
-    lcd.setCursor(0,0);
+    lcd.setCursor(0,1);
     lcd.print(P);
     delay(10000); 
     Serial.println(P);
     //read total flow once per sampling interval
-    
-    delay(200);
-    
-    /*/ make a string for assembling the data to log:
-    String dataString = "";
-    dataString += String(now.unixtime());dataString += ",";
-    dataString += String(P);
-    
-  
-    // open the file. note that only one file can be open at a time,
-    // so you have to close this one before opening another.
-    File dataFile = SD.open(filename, FILE_WRITE);
-  
-    // if the file is available, write to it:
-    if (dataFile) {
-      dataFile.println(dataString);
-      dataFile.close();
-      // print to the serial port too:
-      Serial.println(dataString);
-      lcd.setCursor(0,1);
-    lcd.print("it works");
-    }
-    // if the file isn't open, pop up an error:
-    else {
-      Serial.print("error opening ");Serial.print(filename);Serial.println("!");
-    }
-  */
     delay(10000); 
     //reset averaging tools if interval is met
     readingCount=0; 

#define WHITE 0x7
const int chipSelect = 10;

unsigned long LOG_INTERVAL = 25000;
unsigned long previousMillis = 0;

// The analog pins that connect to the sensors
#define PressureAnalog A0      // analog 1

// define the Real Time Clock object
RTC_PCF8523 RTC; 

char sensordata[30];                //we make a 48 byte character array to hold incoming data from the Flow Meter Totalizer.  
char sensordatajunk[30];
byte received_from_computer=0;     //we need to know how many characters have been received.                                 
byte sensor_bytes_received=0;       //we need to know how many characters have been received.
byte string_received=0;            //used to identify when we have received a string from the Flow Meter Totalizer.
float f;
char *flotot;



void setup() {
    lcd.begin(16, 2);
  lcd.print("start!");
  lcd.setBacklight(WHITE);
  delay(5000);
