This is for personal use at home.
I need to control 2 relays to work in this manner
From a Wifi controlled Amazon Alexa relay module (ON or OFF) i need number 1 relay to turn on as soon as the module turns on then 5 seconds later i need number 2 relay to turn on and stay on untill i turn off the Wifi module
Now as soon as i turn off the Wifi module i need number 2 relay to turn off and 5 seconds later i need number 1 relay to turn off.
Im by no means a coder i can upload programs into an Arduino but thats about it.
I would like to use the smalest Arduino suitable for this task