Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
Hi Aymen can you add this to your code is for debugging purpose ; void loop() {
int rawADC = analogRead(ADC_BATTERY);
Serial.print(“Raw ADC value: “);
Serial.println(rawADC);
Serial.print(“Battery voltage is “);
Serial.print(battery.voltage());
Serial.print(” (“);
Serial.print(battery.level());
Serial.println(“%)”);
delay(1000);
}
Could you please explain what difference it could make?
CONTRIBUTE TO THIS THREAD