Air compressors are devices that are made to convert power into electrical energy. The compressor forces more and more air into the tank increasing the pressure, so once the tank is filled the compressor shuts off and the air stays inside the tank until it needs to be used.