By the looks of your pics, someone put blue wire loom over the map sensor harness and one of the screws to hold your maf in place is half unscrewed. What did you do with your crank case vent hose that's supposed to go into the intake tube?
So to start from the beginning, your car ran fine then you bolted on an air intake that isn't doesn't have a crankcase vent connection and then you had started having problems with it throwing codes?
You could either look up the wiring schematics in the service manual then check each wire in the maf and map circuits for continuity between where ever they go(presumably ecu and sensor) or cut(or unzip) the zip ties that hold the wiring harness, cut the electrical tape along the harness from each sensor to the main harness and closely look at each wire, especially where it was zip tied(that's where they usually break). Or you could read live data of the maf and map with the engine running and unplug each sensor and see if the readings change(that'll obviously throw codes that'll need to be cleared). Or read live data while wiggling the harness around if one of the sensors doesn't read anything then you probably have a broken wire and not 2 faulty sensors...
Personally, I'd put the stock intake back on along with the original sensors and try it out. Post what codes you have after clearing them.
View my fuel log 2014 Mirage SE wussie cvt edition. 1.2 automatic: 37.7 mpg (US) ... 16.0 km/L ... 6.2 L/100 km ... 45.3 mpg (Imp)