Strange values ...

How come this constant declaration...

const unsigned long ms15 = 10006015; //milliseconds in 15 minutes.

produces this value when I print it out using Serial.println(ms15,DEC)???

ms in 15 minutes = -17504

-- Rich

Even though you are putting the result in an unsigned long type, these (10006015) are still seen as ints. Give one of them the suffix UL.

1000UL * 60*15