 void setup() {
   Serial.begin(9600);
   voltmetre();
-  Serial.print("Voltage = ");Serial.print(voltage);Serial.println(" V ");Serial.println();
+  //Serial.print("Voltage = ");Serial.print(mesure_voltage);Serial.println(" V ");Serial.println();
   
   
   if (voltage<6.5) 
   {
-    Serial.println("CRITICAL ERROR : BATTERY TOO LOW !");
+    Serial.print((char)150); //valeur arbitraire
     while(1);
   }
   

    voltage = mesure_voltage / (255/5);
    voltage = voltage * 0.50229;
    batteryLevel=(voltage-6.6)*100/2.4;
    if(batteryLevel > 0) Serial.println(batteryLevel);
    //Serial.print(voltage);
    //Serial.println(" V ");
    //else Serial.println("error");
}
 


        //VOLTMETRE
int batteryLevel;
char batteryLevel_char;
float voltage;
int mesure_voltage;
  //R1=97.9 kOhms 
