First, apologies if this has been raised elsewhere, if so please point me in towards the right posts.
I'm very new to the Arduino, and have done the very basic sketches - blinking an LED,running the serial function and have got one of my UNOs reading the temperature and ambient light onto a two line LCD display. What I can't get to work is using two inputs to operate two relays. That is one input 'tied' to one relay, the other input to the other relay. I can easily get one input for one relay, but I cannot work out how to get the Uno to switch the relays independently. For example, one relay for outside lights at the front of the house, the other for the rear. I'm an electrician so the mains side of things is easy, but the programming is another matter.
The only sketches I've seen are either single relays or multiple relays being switched sequentially.
Do I need to involve interrupts? Or do I need if....then....else code?
Any pointers would be greatly appreciated.