Declaration of function cannot work in different board

VincentNg3120:
But I would like to have LCD and IoT both in my project, how? :frowning:

The LCD library is completely irrelevant. I just don’t have it installed. So, I removed it from the code to prevent errors.

You may have a non-printing garbage character in your code that the forum software filtered out for me. Try this:

  • In the Arduino IDE, select File --> New

  • In the new window that opens, select ALL the text and delete it. You should now have a completely blank sketch window.

  • Go to the code scroll box in your Reply #5 and click [Select] at the top.

  • Copy / Paste the code into your blank IDE window.

  • Save / Verify