   }
   return distance; 
 }
-
-// End of Maxbotix sensor code
-// **************************************
-
-// Battery monitoring
+// End of Ultrasonic sensor code
+
+// Start of Battery monitoring
 int readVcc() {
   // Read 1.1V reference against AVcc
   // set the reference to Vcc and the measurement to the internal 1.1V reference
+  
   #if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
     ADMUX = _BV(REFS0) | _BV(MUX4) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);
   #elif defined (__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)

  if (!sendCommand("ATDN")) return 4;
  return 5; // success
}


uint8_t enterCommandMode()
{
  delay(1200);

 *
 * NOTE: For initial testing, wakeup time set to 5mins and battery interval to 4 cycles
 * (c) Andrew D Lindsay 2014
 * Contributions from Ben Ward
 */

#include "LLAPSerial.h"	// include the library
#include <OneWire.h>
#include <DallasTemperature.h>

#define VERSION_STRING "V3.1.3"  

// Number of readings before a battery reading is taken
#define BATTERY_READ_INTERVAL 10
