#include <timeObj.h>
timeObj kitchenTimer; // It's a timer.
void setup() {
kitchenTimer.setTime(5000); // 5,000 is 5 sec
pinMode(13, OUTPUT); // We want to control pin 13.
}
void loop() {
if (kitchenTimer.ding()) { // If the timer dings..
digitalWrite(13,HIGH); // Tunrn on the light.
kitchenTimer.reset(); // Shut off the timer.
}
}