Folks, I am new to Arduino. Need help to automate water tank (water quantity)

Please add code tags when posting code (the </> button in the editor) as there are smileys in the code.

Anyway based on what I can read: sensor is expected to connect to pin 8, and just acts like a regular switch, active LOW.