I have connected two sensors on GPIO21 and 25 ports, and I am checking for a state change every second.
Currently when the state changes on either port I am sent a text message. However when the state changes on both ports I am only receiving a message for the one which changed first, not the second port.
I think this is because the adl_smsSend is trying to send the second one before the first one is finished. I am struggling to add some kind of delay, can anyone offer some suggestions as to how I can achieve this please?
Thanks in advance.