1996 Nissan Pickup - MAF sensor

MAF went out about a year ago and the truck was acting the same way it did then. The mechanic checked it out and seen that the sensor had cracked on the replacement. why or how it would crack makes no sense. Im not sure what the code was to be honest and Im surprised that with the current problem i haven’t seen a code yet.