// Global variable
int globalVariable = 10;
void setup() {
// Initialize serial communication
Serial.begin(9600);
}
void loop() {
// Print the value of the global variable
Serial.println(globalVariable);
// Modify the global variable
globalVariable++;
// Wait for a second
delay(1000);
}