A method and apparatus is provided for an a system for maintaining
hydrogen purity in an electrical power generator. The purity system
includes: a generator, a hydrogen generator configured to provide
hydrogen gas to the generator, a purity monitor for detecting the level
of hydrogen purity in the generator and providing a signal when the
purity drops below a predetermined threshold. The system automatically
compensates for gas loss or contamination to maintain the desired level
of efficiency in the electrical generator.