Natural gas generators operate by using natural gas as a fuel to produce electricity. When the generator senses a power outage, it automatically starts the engine, which then turns a generator to produce electricity. This provides a seamless transition and ensures that laboratory operations continue without interruption.