I am working as an engineer in a private company, we are dealing with IOT and m2m. We have started developing motion detection module using particle electron on pir sensor.
As a prototype, we are testing in real time, i have written a code to publish an event and prolonged with sending an alert email using 3rd party app and webhooks.
it is working fine for one day and started switching off after a day or so. when i measure the battery voltage, it is showing zero. I need that device should be ON for three months. Do I need to change the battery or alter anything in the programming to get it alive for 3 months. project is in final phase, kindly anyone help me to sort out this issue.
Thanks and Regards,