 float f;
 char *flotot;
 
-int PressureAnalogReading = 0;
-unsigned long PressureReadingSUM = 0;
+float PressureAnalogReading = 0;
+float PressureReadingSUM = 0;
 unsigned long readingCount = 0;
 
 void setup() {
+    lcd.begin(16, 2);
+  /* if (! rtc.begin()) {
+    lcd.print("Couldn't find RTC");
+    while (1);
+  }
+
+  if (rtc.lostPower()) {
+    lcd.print("RTC lost power, lets set the time!");
+    // following line sets the RTC to the date & time this sketch was compiled
+    rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
+    // This line sets the RTC with an explicit date & time, for example to set
+    // January 21, 2014 at 3am you would call:
+    // rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
+  }
+  // Print a message to the LCD. We track how long it takes since
+  // this library has been optimized a bit and we're proud of it :)*/
+  lcd.print("start!");
+  lcd.setBacklight(WHITE);
+  delay(5000);
+
+uint8_t i=0;
   // Open serial communications and wait for port to open:
  
   Serial.begin(9600);
-  while (!Serial) {
+  /*while (!Serial) {
     ; // wait for serial port to connect. Needed for native USB port only
   }
-
-
   Serial.print("Initializing SD card...");
-
   // see if the card is present and can be initialized:
   if (!SD.begin(chipSelect)) {
     Serial.println("Card failed, or not present");

    previousMillis = currentMillis;
    
    // create a filename
    
    DateTime now;
    now = RTC.now();
    int YR = now.year();

    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.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);
