A smart pig is an electronic device that can be used to inspect the insides of natural gas pipelines. The device travels through a pipeline and transmits images of the inside of the pipeline so inspectors can tell if the pipeline needs repairs.