I love the ESP32 and use it as the central gateway/hub in the IoT solutions I develop.
However the ESP32 power consumption is too high. TI has an ARM-based wireless sensor platform that can run for years while making measurements every five minutes.