I did that and the car turned off. So what I ended up doing was checking the check engine light manually (since the light came on again) and it gives me code #34 map sensor signal out of range, low. So what do I do now?

So I ended up replacing the ECM and its not giving me the map sensor code anymore. But it is giving me code 22 which is tps sensor low signal. The sensor is brand new why would this be happening? I tested the sensor out and it is getting enough voltage and ground from the ECM but its not sending its signal back to ECM. What can I do?