The Generator is the power source of the prison, and allows Cameras, Metal Detectors, and Electric Fences to function. Prisons containing any of these three structures will likely have a Generator as well. Generators are usually behind locked doors, requiring Keys or Plastic Keys of different colors to open them. The doors usually require Red (Staff) or Cyan/Orange (Utility) keys. [needs verification]
Generator status is indicated by the green/red light and can be shut down temporarily by clicking on it. This will power down the electric structures (and the lights!) for a short time until the Generator restarts. Because of this, it is recommended to bypass electric fences close to the Generator. The Generator will produce a large sound when it comes online after 1 in-game hour. Often, the first signal of the Generator reactivating is the lights in the prison turning back on.