Hi and welcome to NICO Club!
The code you mention is for the MAF. If putting in a new one didn't clear the code, then something else is wrong. Usually, in the diagnoses procedure, you check current, ground and wires in addition to the sensor before replacing parts. We have the FSM for your car. The EC chapter goes into all of this. Please take a look at this link to the EC chapter.
What is interesting to me is that the FSM has nothing for code P0101. MAF errors get P0102 and P0103. So, I'm not sure about the device your using or perhaps you have the wrong car year. Also, I have no idea what is wrong with your car at this point. I guess it's just that you have a check engine light on. Do you have any drivability issues or odd behaviors? The FSM for a 2010 model has the P0101 code. Can you check your drivers door jam sticker or the placard on the firewall in the engine bay for your car's year?
Clearing codes with a scanner tool is nearly identical to clearing codes by pulling the negative battery terminal. If the code keeps coming back, then the issue is not yet fixed.
Here's a link to the EC chapter I mentioned for the 2010:
http://www.nicoclub.com/service-manual? ... ma/2010/EC
and for the 2011:
http://www.nicoclub.com/service-manual? ... 0altima/EC