// 🛠 Second Arduino Program: Blink an LED and print status in Serial Monitor
// 👉 Concepts introduced: Serial.begin(), Serial.print(), debugging with Serial Monitor
int ledPin = 13; // LED connected to pin 13
void setup() {
pinMode(ledPin, OUTPUT); // Set pin as output
Serial.begin(9600); // 1️⃣ Initialize Serial Monitor at 9600 baud rate
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn ON the LED
Serial.println("LED is ON"); // 2️⃣ Print message to Serial Monitor
delay(1000);
digitalWrite(ledPin, LOW); // Turn OFF the LED
Serial.println("LED is OFF"); // 3️⃣ Print message to Serial Monitor
delay(1000);
}