// Define the pin connected to the LED
int ledPin = 13;
void setup() {
// Initialize serial communication for debugging
Serial.begin(9600);
Serial.println("Simulation started");
// Set the pin mode for the LED pin
pinMode(ledPin, OUTPUT);
}
void loop() {
// Turn the LED on
digitalWrite(ledPin, HIGH);
Serial.println("LED is ON"); // Debug message to indicate LED is on
delay(1000); // Wait for 1 second
// Turn the LED off
digitalWrite(ledPin, LOW);
Serial.println("LED is OFF"); // Debug message to indicate LED is off
delay(1000); // Wait for 1 second
}