How to call another function inside void loop function

Hi @peterjin

Hi,
The mode you used to call the function is correct.

The problem is that you have an improper "}" on line 98 of your sketch.

RV mineirin