     readSensors();
     postMeasures();
     
-    // wait 1s between measures
-    delay(1000);  
+    delay(MEASURES_PERIOD);  
     
   }
  

  void postMeasures()
  {
    Serial.println("\nStarting connection to server...");
    String body;
    
    // if you get a connection, report back via serial:
    if (client.connect(server, port)) {
      Serial.println("connected to server");
      for (int i = 0; i < numsensors; i++){ 
        body= body + String(measures[i][0])+"|"+String(measures[i][1]);

  void readSensors()
  {
    //Reading Light and Button Sensors contained in Grove Starter Kit for Arduino
    
    //Connect Light Sensor on Analogic PIN A0
    int lum = analogRead(A0);
    measures[0][0] = "l";
