Simple Arduino library/class for adaptive bound scaling