I wouldnt bother much with cracked plastic if everything is fine, as changing that plastic could cost fortune and if everything is fine i suggest dont bother.
Air flow sensor is place on backside of air filter neck, round black plastic fitted with sensor inside. You just need to unscrew that black plastic and fit with new one.