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

#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;


#include <SPI.h>
#include <Wire.h>
#include <Adafruit_RGBLCDShield.h>
#include <utility/Adafruit_MCP23017.h>
Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield();
