Humidity sensor controlling pump for x seconds

jremington wrote:

Always use unsigned long ... constants when working with millis().

unsigned long constants have a suffix of UL, such as 300000UL .

While some compilers may be smart enough to figure this out without the UL, the UL tells the world that this is what you intended.