I am very poor at C programing and haven't a hope with assembler. But agree when the logic and all signal filtering is all sorted out I will find someone who knows how to put it in a nice neat package with automotive quality, durability and minimal hardware. And that could be you or anyone else on this sight that might be interested.I an VERY poor at C programming so someone else will be better to comment on the software. (I would have written it in assembler and used an Attiny13A.)
Les.