Complex sentence: Pigs are also used in oil and gas pipelines: they are used to clean the pipes but there are also "smart pigs" used to measure things like pipe thickness and corrosion along the pipeline.
Split into simpler sentences: Pigs are also used in oil and gas pipelines to clean the pipes. There are also "smart pigs" used to measure things like pipe thickness and corrosion along the pipeline.