need help for coding! water monitor

What have you tried so far ?