Issues with sleep - Need advice on troubleshooting ideas

Thanks @ScruffR. Major changes in the rest of the code were the introduction of webhook handlers which you Kindly reviewed for me in another post (Webhook response handler example). I have 2 of these handlers each handling 4-5 publish events that we need to make sure they arrive to the destination in Ubidots. My next step is to try to make all these response handlers a bit more efficient.

Major thing at the moment is that devices do their job, go to sleep, wake up, do their job, etc, for several days and then fall unresponsive to the wake up interrupt pin. I will add (just in case) an extra check of the interrupt pin to make sure it’s in LOW before going to sleep but will revert to 0.7.0 too.