It's not the O2 sensor. The issues you are having are caused by P0102 and since you know that's an issue with the maf, check the wiring to it and replace the maf.