Analog sensor update more often.

const int  buttonPinOn = 1;                    // the pin that the ON pushbutton is attached to
const int  buttonPinOff = 0;                   // the pin that the OFF pushbutton is attached to

Those are NOT pin numbers. they are interrupt numbers.