MG811 library

I am using mg811 sensor for detecting CO2 in ppm.
and the refrence code that I've got was using Mg library, and I don't have that.
is there anyone's here have a mg811 library?
or where can I get that library?