I am a 14 year old that is trying to make an interface in my dads kit car that takes in 2 momentary switch's and control 2 relay modules for the indicators in a car. I have had a go at coding it and have got them to work to some extent but they don't always respond to the button press or you have to hold the button in. All advice or changes to the code are very welcome.
I have also made the switch's send a LOW input when pressed, and the relay modules respond to a LOW input to switch.