Create waterlevel.c

This is the Main C file which is downloaded onto the IC. This contains the logic along with the working code