Hello , i'am a Ardruino and microcontroller engineer , i ready to provide you the code that you need sir , i can write the code and to simulation , you can pay me when the work is done and works , the price is negociable also the delay , contact me please if you're interessted , thank you