is the measurement of stack height via an ultrasound sensor. I wonder is the sensors can pick up the right height through the bottom grate. One basket is only an inch high so the disparity between a full stack (6') and a half stack may be too much for a precise measurement.
How about having the ultrasound sensor above the stack, measuring the distance to the top of the stack? (The height can then be calculated by subtraction.)