     digitalWrite(LEFT_LED, (i % 2 == 0));
     delay(200-(i*10));
   }
+  initialBootTime = millis();
 }
 
 
 void loop() { 
-  runs++;
-  delay(100);
+  unsigned long currentTime = millis();
+  delay(50);
   temperature = analogRead(THERMISTOR_CS);
   photocell = analogRead(PHOTOCELL);
+  uptime = (currentTime-initialBootTime)/1000;
 }

#define PIEZO A5

Servo rightServo, leftServo;
int temperature = 0, photocell = 0, runs = 0;

int move(String command){
    analogWrite(PIEZO, 120);

  
  Spark.variable("temperature", &temperature, INT);
  Spark.variable("light", &photocell, INT);
  Spark.variable("uptime", &uptime, INT);
  Spark.variable("left_light", &leftLightOn, BOOLEAN);
  Spark.variable("right_light", &rightLightOn, BOOLEAN);

  pinMode(LED_CS, OUTPUT);
  pinMode(THERMISTOR_CS, INPUT);
