How did you read 3.7v LiPo discharge?

Thanks for the link, and the code there only for MKR board right? But MKR link is dead