Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By SenneS
#83664 Hi,

I'm trying to make a really simple arduino sketch that sends 2 temperature values to an MQTT server.
Everything works but it only runs for about a day or 2. I've read alot about deep sleep and really thought I have everything optimized but 2 days is very short in my opinion.
I'm using 2 DS18B20 with a Sparkfun Thing that's powered by a 3.7v 2000mAh battery(https://www.tinytronics.nl/shop/index.p ... ile_id=877)
Here's my code:
https://gist.github.com/Sennevds/b2ab91 ... 0b4f67a40c

Are there still optimalisations I can do or is the battery not heavy enough?