Ugh.
When i run the code, and give a serial input, the ON relay fires < Good.
Then after 5 seconds, if the alternatorPin is low, it fires the IGNITION relay <Good.
Then when i push the button on alternatorPin (sending it high) the IGNITION relay doesn't switch off. i thought it would as in the code it's stated that if alternatorPin goes high, it makes ignitionPin low, then it should proceed to the next line of code.
But the arduino doesn't wait around for this to happen, it just sees what the state is at exactly 5 seconds and makes it's judgement, and moves onto the next lines of code.
Regards, Matt.