     melody_last = millis_now;
     playMelody();
     
-    // Check battery level
-    long vcc = readVcc();
-    Serial.print("Battery: ");
-    Serial.println(vcc);
+    batteryLevel();
   }
   
 }
 
-void playMelody() {
+void playMelody() 
+{
   // iterate over the notes of the melody:
   for (int thisNote = 0; thisNote < 8; thisNote++) {
 

  digitalWrite(motorB_brake, LOW);   // Disengage the Brake for Channel B
  
  
  // Turn in place constantly.
  digitalWrite(motorA_direction, HIGH); // Channel A forward
  digitalWrite(motorB_direction, LOW); // Channel B backward

int melody[] = { 262, 196, 196, 220, 196, 0, 247, 262 };
int noteDurations[] = { 4, 8, 8, 4, 4, 4, 4, 4 };

// Led configuration
const byte led_battery = 5;

unsigned long millis_now;

void setup() {
