Cheers Nigel , I must of been having a dense moment.
A good source of information is to be found in
the SCUBA diving web pages , in particular
CLOSED CIRCUIT REBREATHERS (CCR)
both modern and homebuilt versions require
oxygen sensors to control the breathing gas mixture. **broken link removed**