I’m in no way trying to discourage you from completing your project, but here is an idea. MKR boards are 3.3 volt boards, have a LiPo battery connector and charge circuit and checking the battery level is as easy as analogRead(ADC_BATTERY) https://create.arduino.cc/projecthub/Arduino_Genuino/mkr-zero-read-battery-voltage-4853ac