Can someone please check my code?

gfvalvo:

  1. It has a main() function.
  2. It doesn't have setup() and loop() functions.
  1. Programs compiled in the Arduino IDE have a main() function but it is hidden from view.

  2. If you provide your own main() function then setup() and loop() are not required