Go back and check alternator now, get it checked from toyota and go for ecu check up as well.
Thanks guys the problem was with loose wiring the sensors plugs weren't plugged in properly..ALHAMDULILLAH the alternator is perfectly fine