   sendBuffer[length++] = '\n';
   
   sendBTLEString(sendBuffer, length);
+  latchtime = millis();    // Reset the base latchtime for the IDLETIME timeout count, since activity has occurred  
 }
 
 void sendConductivityString(volatile char* buffer, volatile int len){

int readLightConverter(){
  return analogRead(DETECTORPIN);
}
Photometer photometer(blueLEDControl, greenLEDControl, readLightConverter);

void setupPhotometer(){
  mcp.begin();
  mcp.pinMode(BLUELEDPIN, OUTPUT);
  mcp.digitalWrite(BLUELEDPIN, LOW);
  mcp.pinMode(GREENLEDPIN, OUTPUT);

#include "Photometer.h"

#include <Wire.h>
#include <SPI.h>
#include "utilities.h"
#include <RFduinoBLE.h>
#include "BTLE.h"
