 // main processing loop
 //
 void loop() {
+  
+    heartbeat(DPIN_MOTE_LED);
     
     switch (scheduler.pollWaiting()) {
 

    #if DEBUG
        Serial.println("setup sensors");
    #endif
    pinMode(APIN_LDR, INPUT);
    pinMode(DPIN_HALL, INPUT);
    oneWireSensors.begin();  
}

}

//------------------------------------------------------------------------------
// simulates a heartbeat to show activity
//
static void heartbeat(int pin) {
    int rate = 25;
    int pmw = 255;
    for(int i = 0; i < pmw; i++) {
        analogWrite(pin,i);
        delay(((60000/rate)*.1)/pmw);
    }
    for (int i = pmw; i > 0; i--){
        analogWrite(pin,i);
        delay(((60000/rate)*.2)/pmw);
    }
    for(int i = 0; i < pmw; i++) {
        analogWrite(pin,i);
        delay(((60000/rate)*.1)/pmw);
    }
    for (int i = pmw; i > 0; i--){
        analogWrite(pin,i);
        delay(((60000/rate)*.6)/pmw);
    }
}

//------------------------------------------------------------------------------
// flushes the serial port
//
static void serialFlush () {
