I am trying to both take items out of a chest and put the same type of item into the chest so that it will always have less than a full stack of the item but never run out of it either. For this I am using one slice of a standard item sorter with a chest on top keyed to one type of item rather than a hopper and a chest full of the item above the keyed one which feeds into the keyed chest through another hopper. I fill all but one slot with a filler item and some number of the relevant item between 0 and a full stack. When the item reaches 0 or some lower limit the comparator should drop one signal level, unpowering the hopper above the chest and filling it back up till the comparator gives the neutral output again. If the item reaches a full stack or some upper limit the signal should go up one, allowing me to activate the hopper below to funnel the excess into storage.
Is there some combination of filler items which will allow the upper and lower bounds to be within one stack of one another?