Midstream automation software that increases throughput, reduces OPEX, and improves safety using existing infrastructure