Whatever works.
But save for using a PEM fuel cell to make the electricity this sounds like a science fair project that was presented in my high school. Biomass + bugs = electricity by tapping their acidic waste products using distributed electrodes.
Who was that 9th grade masked man...hmm....oh yeah...it was me
Dr. Mordrid