@heizelmann Hi. Sorry if I wake an old thread. Do you still have your code? I am about to build a rain gauge and want it to run on battery. Your way to handle things is what I am looking for. Would you like to share your code?