 
   /* When it is possible to reply to serial */
   if (writeToSerial) {
+    updateTime = curMillis;
     /* Identification byte */
     Serial.write(ARDUINO_ID);
 
-    for (int i = 0; i < BUFFER_DATA_LENGTH; i++) {
-        Serial.write((uint8_t) 0);
-
-        // TODO: Instead of writing zero, write something else
-      }
+    //Serial.println(analogRead(LIGHT_SENSOR) > 800);
+    Serial.write(analogRead(LIGHT_SENSOR) > 800 );
+    
   }
 }

  /* Begin communication over Serial Port with a baud
     rate of 9600*/
  Serial.begin(BAUDRATE);
}

/* Main Arduino loop */

/* General global value definitions */
#define ARDUINO_ID 201
#define C_ID 200
#define BUFFER_DATA_LENGTH 1
#define BAUDRATE 9600
#define LED 2
#define LIGHT_SENSOR A0

long updateTime = 0;

