help for the program for water tank

Welcome, but please study the book mentioned seriously!