Need help with my first project

This should be a revision to the example code in the IDE, IMO. Never occurred to me to do this simple fix but totally makes sense and solves an issue I have seen and so many others, OP included.

Brilliant.

@macgyver60, it would be a really solid thing to do to give @UKHeliBob a "solution" click in this thread, that others with the same problem may come across it when Googling around.