Well you have to use a BMS board, otherwise you run a very real risk of melting your device. But all that aside, what you're looking to construct is a circuit which includes a voltage senseing ic of some kind, which will be able to communicate with, or directly provide a programmable GPIO that...