void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
}

void loop() {
  int num = 9; // Number to convert to binary

  Serial.print("Binary representation of ");
  Serial.print(num);
  Serial.print(": ");

  for (int i = 7; i >= 0; i--) {
    Serial.print(bitRead(num, i)); // Use bitRead() function to get the value of the i-th bit in the number
  }

  Serial.println(); // Print a new line
  delay(1000); // Delay for 1 second
}