Mh-z19 co2 sensor mongoose os library creation

Has anyone tried to create their own mh-z19 co2 library to make it compatible to mongoose os from arduino?