   turn_camera_on(CAM_01_PIN);
   turn_camera_on(CAM_02_PIN);
 
-  if (! mma.begin()) {
+  if (! accelerometer.begin()) {
     while (1);
   }
 
   dht.begin();
 
   // Check Accelerometer range
-  // mma.setRange(MMA8451_RANGE_2_G);
-  // Serial.print("Accelerometer Range = "); Serial.print(2 << mma.getRange());
+  // accelerometer.setRange(MMA8451_RANGE_2_G);
+  // Serial.print("Accelerometer Range = "); Serial.print(2 << accelerometer.getRange());
   // Serial.println("G");
 }
 

#include <Adafruit_Sensor.h>
#include <DHT.h>

#define DHTPIN 4 // DHT Temp & Humidity Pin
#define DHTTYPE DHT22   // DHT 22  (AM2302)

const int CAM_01_PIN = 5;
const int CAM_02_PIN = 6;

int led_value = LOW;

Adafruit_MMA8451 mma = Adafruit_MMA8451();

DHT dht(DHTPIN, DHTTYPE);

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

void read_accelerometer() {
  /* Get a new sensor event */
  sensors_event_t event;
  accelerometer.getEvent(&event);
  uint8_t o = accelerometer.getOrientation(); // Orientation

  Serial.print("\"accelerometer\":{");
  Serial.print("\"x\":"); Serial.print(event.acceleration.x); Serial.print(',');
