// Include the required libraries
#include <Arduino.h>
// Set the LED pin number
#define LED_PIN 5
void setup() {
// Initialize the LED pin as an output
pinMode(LED_PIN, OUTPUT);
// Initialize Serial Monitor at 9600 baud rate
Serial.begin(9600);
}
void loop() {
// Turn the LED on
digitalWrite(LED_PIN, HIGH);
// Print "LED ON" to Serial Monitor
Serial.println("LED ON");
// Wait for one second
delay(1000);
// Turn the LED off
digitalWrite(LED_PIN, LOW);
// Print "LED OFF" to Serial Monitor
Serial.println("LED OFF");
// Wait for one second
delay(1000);
}