I’m using the following code:
Which should be designed as a low-energy setup where the electron by default is in sleep-mode and will only momentarily wake up and send a message when it’s moved. However, after leaving the sensor unplugged from the USB overnight, I noticed the battery charge already had dropped from 86 to 83%. Is this an indication that something is going wrong here and it drains very rapidly, or is it an inaccurate measurement (Electron and all its components are just a week old)?
I’d like to have the electron be able to run for months, possibly years by consuming as little energy as possible, so this is an important thing to know for me.