Oxygen/carbon dioxide monitor with power supply