void setup() {
   Serial.begin(9600);
   uint8_t num = 13; // Binary: 00001101
   uint8_t mask = 0b11110000; // Binary: 11110000
   uint8_t extractedBits = num & mask;
   Serial.print("Extracted bits: ");
   Serial.println(extractedBits, BIN); // Extracted bits: 0000xxxx
}

void loop() {
   // Empty loop
}