 
 void loop() {
   backValue = analogRead(backPin);
-  rShoulderValue = analogRead(shoulderPin);
-  rUnderarmValue = analogRead(underarmPin);
+  rShoulderValue = analogRead(rShoulderPin);
+  rUnderarmValue = analogRead(rUnderarmPin);
+  lShoulderValue = analogRead(lShoulderValue);
+  lUnderarmValue = analogRead(lShoulderPin);
   
-  testing();
-  
-  //println(checkPosition());
-  //Serial.println("100");
-  delay(300);
-}
+  String content = "";
+  char character;
 
-/*
-boolean checkPosition(){
-  switch(pos) {
-    case 'Plank':
-      if (armFwdRight90() && backStraight()){
-        return true;
-      } else { return false; }
-    default:
-      Serial.println("Invalid Position");
-      break;
+  while(Serial.available()) {
+      character = Serial.read();
+      content.concat(character);
+  }
+
+  if (content != "") {
+    Serial.println(content);
+    JsonObject& root = jsonBuffer.parseObject(const_cast<char*>(content.c_str()));
+    
+    if (!root.success()) {
+      Serial.println("parseObject() failed");
+      return;
+    } else {
+      Serial.println("parseObject() succeeded");
+    }
   }
 }
-*/

int lUnderarmValue = -1;
int rUnderarmValue = -1;

int pos = 'Plank';

void setup() {
  Serial.begin(9600);
  pinMode(buttonPin, INPUT);
  //setVariables();
}

void testing() {

 * Sensor Shirt
 * Kylie Dale and Michael Guida
 */
#include "ArduinoJson.h";
 
const int backPin = 14;
const int rShoulderPin = 15;
const int rUnderarmPin = 16;
const int lShoulderPin = 17;
const int lUnderarmPin = 18;
const int buttonPin = 0;

int backValue = -1;
