mmmm i think that al this work, for a 4 weeks working sensor is not a good solution for a home automation system....
Why can a Zwave or 433Mhz motion sensor work for more then a year...
Is my biggest question..
Forum link
Is there relay now solution for a battery live for a year...
Other bord, other sketch, other regulator, other battery...
or...