@jordantheripper Hi!
Check this out: https://www.mysensors.org/about/arduino#basic-structure-of-sketches
You can also check out any example in https://www.mysensors.org/build to get an idea how it should be written.
Its very easy, just give it a try.