   readCount = getMeasurementCount();
 
   // The user might have turned off the unit causing an interrupt
-  if (error == I2C_ERROR){
+  if (error == I2C_ERROR) {
     Serial.println("Can't communicate with the chip.");
     return;
   }
-  
-  // Check count in our own eeprom, so we know if we have sent this data before   
+
+  // Check count in our own eeprom, so we know if we have sent this data before
   ourCount = EEPROM.read(0x00);
-  
-  if (readCount != 0 && readCount != ourCount){      
+
+  if (readCount != 0 && readCount != ourCount) {
 
     Serial.println("New measurement detected!");
-    
-    // Get last measurement 
+
+    // Get last measurement
     addr = (readCount - 1) * 4; // address for last measurement
     Serial.print("Reading from 0x");
     Serial.println(addr, HEX);

    Serial.print(diastolic, DEC);
    Serial.print(" mmHG and ");
    Serial.print(hr, DEC);
    Serial.println(" bpm. Bye!");    
    
  }else if (readCount == 0 && ourCount != 0){
    
    // BPM's memory was probably erased by the user
    // So, update the count in EEPROM to keep it in sync
    EEPROM.write(0x00, 0);

  int readCount = 0;
  int ourCount = 0;
  int addr = 0x00;

  // Trigger on SDA activity, user might have stored a new measurement
  busActivity = false;
  attachInterrupt(0, busActivityDetected, CHANGE);

  Serial.println("Waiting for bus activity.");

  // Lets take a nap while we wait.
  while (busActivity == false) {
    yield();
  }

  // Ok, forget the interrupts for now, there's work to do!
  detachInterrupt(0);

  // Delay a bit so the monitor's MCU can finish talking
  delay(500);

