I needed to remove the else statement at the bottom as it was locking in that state and would then not send any more pulses (I think).
I removed it and now it is sending quite a fast stream of values. Not sure why it is not sending at the 1 sec intervals it was previously.
J-M-L, thank you! appreciate you cleaning it up!!