 void loop() {
 
   Serial.print("{");
-  read_accelerometer();
-  Serial.print(',');
-  read_dht_temp();
+
+  read_accelerometer(); Serial.print(',');
+
+  read_dht_temp(); Serial.print(",");
+
+  Serial.print("\"count\":"); Serial.print(++counter);
+  if(counter > 65000){
+    counter = 0;
+  }
+
   Serial.println("}");
-
-  toggle_led();
 
   delay(1000);
 }

int led_pin = 13;
int led_value = LOW;

Adafruit_MMA8451 mma = Adafruit_MMA8451();

DHT dht(DHTPIN, DHTTYPE);

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

  // Setup Camera relays
  pinMode(CAM_01_PIN, OUTPUT);

  float h = dht.readHumidity();
  float c = dht.readTemperature(); // Celsius

  Serial.print("\"humidity\":"); Serial.print(h); Serial.print(',');
  Serial.print("\"temp_01\":"); Serial.print(c);
}

/************************************
