#define PUMP_PIN 1 #define LED_PIN 13 void setup() { pinMode(PUMP_PIN, OUTPUT); pinMode(LED_PIN, OUTPUT); Serial.begin(9600); digitalWrite(PUMP_PIN, LOW); digitalWrite(LED_PIN, LOW); } void loop() { Serial.println("Turning on the pump..."); digitalWrite(PUMP_PIN, HIGH); digitalWrite(LED_PIN, HIGH); Serial.println("The pump is on!"); delay(3000); Serial.println("Turning off the pump..."); digitalWrite(PUMP_PIN, LOW); digitalWrite(LED_PIN, LOW); Serial.println("The pump is off!"); delay(3000); }