How to use batteries in sewage treatment systems