How does the MG811 sensor work?
The link you gave in the question, actually shows the equation of how this sensor works. You don't need to produce any electrons, you just need to measure the voltage.

Try to write the Nernst equation for the above overall reaction and that will show you what is going on.