Perform constrain before assignment to t for the WaterLevel reading.

This will ensure that the unsigned long t does not get assigned a
negative number.