Did you try to change the constain minimum value ?
sensorValue = constrain(sensorValue, 0, maxOffset);
Always 0 ?