Bought a new CAS, put that in, charged the battery, hopes were high, turned over with no start

. Check engine light is on but when I do self check it gives me 5-5-5 clear and then turns off, but when I take the key out and put it back in its on again. Idk what to do next but I need to do something soon, any more ideas? Oh and I put in a new thermostat too.