/* Switch on a pump every 2nd week for 8 seconds */ // Pin 13 is the output for the pump (transistor with relay ...) #define PUMP 13void setup() { pinMode(PUMP, OUTPUT); }void loop() { digitalWrite(PUMP, LOW); // turn the pump off delay(2*7*24*60*60*1000); // wait 2 weeks digitalWrite(PUMP, HIGH); // turn the pump on delay(8 * 1000); // wait 8 secons digitalWrite(PUMP, LOW); // turn the pump off}