You have an ESP8266 board like the Wemos D1, a Li-Ion battery, you want to build a small battery-powered sensor that ... there’s even an embedded calculator for how long your Wemos D1 board ...