Yes, both, I cut/paste your example code . . . which worked perfectly, thnx!!!
Wind was an issue with my prototype, I had a thin, aluminium tube (an old TV antenna) that swayed quite badly. This is a solid stainless steel pole, even when I try to move the pole (which takes some effort) it it doesn’t cause an issue.
I’m thinking I need to experiment with low/high vs high/low interrupt; and/or narrow the window when it detects the transition . . .in a previous life I had access to no end of test equipment, an decent CRO or Network Analyser would be very handy right now . . .
Oh well, trial and error troubleshooting it is.
cul
billd