I've read alot about deep sleep and powersavings and tried many optimalisations to my code but my battery still lasts only for a day of 2.
I have a Sparkfun Thing powered by a Li-Po Accu 3.7V 2000mAh. There are only 2 DS18B20 onewire temperature sensors connected.
It connects every 5min to my wifi connects to a MQTT broker sends the new values and goes in to deep sleep. When I read about deep sleep and powersavings they all say it should last for weeks but I'm only getting 2 days (3days max).
Here's the code I've written https://gist.github.com/Sennevds/b2ab91 ... 0b4f67a40c
Hopefully someone can help me to optimize this!