W211 OM271 Air flow sensor not working

Question

Hi guys, I have a W211 with a OM271 engine. The air flow sensor does not work. I have changed about 3 different AFM both used and New. Still not working. I have checkd the wiring of the air flow and the wires are ok. Could the issue be in the ECU? kindly advise as soon as possible.