   lcd.setCursor(12, 0);
   lcd.print(population);
   lcd.setCursor(0, 1);
+  
+  if (debug) {
+    Serial.print("Population: ");
+  }
+  Serial.print(population);
+  if (!debug) {
+    Serial.println("*");
+  } else {
+    Serial.println();
+  }
   farLastTime = 0;
   closeLastTime = 0;
   microsLastRead = micros();

}

void printinfo(float doorAngle, int ping_1, int ping_2) {
  Serial.print("Door Angle: ");
  Serial.print(doorAngle);
  Serial.print(" | Ping 1: ");
  Serial.print(ping_1); // Send ping, get distance in cm and print result (0 = outside set distance range)
  Serial.print(" cm | Ping 2: ");
  Serial.print(ping_2); // Send ping, get distance in cm and print result (0 = outside set distance range)
  Serial.println(" cm");
}

int population = 0;          // current population of the room
unsigned long closeLastTime = 0, farLastTime = 0; // The last times a person was detected at the close and far sensors, respectively.  Note that 0 means the last detection never happened or happened too long ago.

// FOR DEBUGGING -- SET TO FALSE TO USE WITH NODE SERVER
boolean debug = true;

// SETUP
void setup() {
  Serial.begin(9600);
