Hey James
Sorry for the long delay, I was away over Easter, and couldnt check some things with the set-up.
Many, many thanks for the code, which I do get the idea of, as a way of preventing multiple alerts. However, afaik, there is no way of interfacing that approach with the Arduino Cloud front end and its IFTTT component. Ive added one screen capture that shows the ‘webhook’ (at very bottom of page) that is triggered when the change in distance measured exceeds the threshold.
That front end section is very inflexible in the logic it can work with, so it would probably be better for me to avoid it altogether, and use other purely sketch-based approaches to send the alert, eg here are two very different but possible ways:
Once I solve that, then I will also be a position to use your code.
If you have any suggestions re a code-based alert, of course I would also be very happy to hear them!
Edit: This seems probably the best way to use the existing IFTTT webhook, meanwhile avoiding the restrictions of the Arduino Cloud front end.
All the best,
Geoff
