XIAO ESP32S3 Sense - Battery charging

Hi there,
Yes, If you disconnect the USB the code may be waiting if so , and you don’t indicate if it freezes or stops?
ie.

while(!Serial); //When the serial port is opened, the program starts to execute.

GL :slight_smile: PJ