error: expected unqualified-id before 'if'

spycatcher2k:
You have an extra } at line 109 & need an extra one at the end of the sketch to close loop() :slight_smile:

Thanks, I realised but couldn't delete the post.

Thanks anyway though!