 int sensor1 = 0;
 int sensor1Pin = A0;    // select the input pin for the potentiometer
 
+// JSON specifics
+aJsonStream serial_stream(&Serial);
+
 // HW declaration
 #define TOTAL_NUM_Dx 14 
 #define TOTAL_NUM_Px 12



  getSerialCommand(); 
  if( g_iNewCode )
  {

    // OLD CODE

    // Send HW status to website
    n = sprintf((char *)p, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",

//char g_acMessage[] = "{\"status\":OK,\"pins\":{\"13\":{\"label\":\"LED ON 13\",\"is_analog\":\"false\",\"is_input\":\"false\",\"value\":\"0.0\",\"connections\":[]}},\"connections\":[]}\"";

unsigned long last_print = 0;
//aJsonStream serial_stream(&Serial);


/* Generate message like: { "analog": [0, 200, 400, 600, 800, 1000] } */
