(untested) add a cooldown in sleep() for arduino

a few other adjustments