The Android phone that you carry in your pocket is basically a small computer running Linux. So why is it so hard to get to a usable Linux environment on your phone? If you could run Linux, you could ...
The inteded use is to run on battery driven boxes, code implements ESP DeepSleep Function to maximize battery lifetime. Sensor data will be pushed to a remote MQTT broker every 5 minutes (by default).