Can someone please check my code?

Why?

  1. It has a main() function.
  2. It doesn't have setup() and loop() functions.