Water level with high and low voltage cutoff with dry run protection

i want to convert the same project that used AT89C51 and coded in assembly in this link into arduino uno platform.i am bigner in coding.So plaese help me coding in circuito.io