Overmind thx u for your time and for providing code that make is works for 100% understanding.
its explained that only two modes give Flawless RED signal.
For note, mCurrentValue is what it detects right ‘now’ (like weight from the weight one, heat from thermometer, etc…), mSetNumber is what ‘you’ manually set with the -/+ buttons, mCurrentMax is what it detects the possible max for the ‘type’ of thing is (so like for items thats the adding of all stacks in a container, for weight it’s the max weight of the thing, so like the 65k for the medium, etc…)
[9:06]
switch (mMode & 127) {
case MODE_DISPLAY : mDisplayedNumber = UT.Code.bindInt(mCurrentValue); break;
case MODE_GREATER : tRedstone = (byte)(mCurrentValue > mSetNumber?15:0); break;
case MODE_EQUAL : tRedstone = (byte)(mCurrentValue == mSetNumber?15:0); break;
case MODE_SMALLER : tRedstone = (byte)(mCurrentValue < mSetNumber?15:0); break;
case MODE_SCALE : tRedstone = (byte)UT.Code.scale(mCurrentValue, mSetNumber, 15, F); break;
case MODE_PERCENT : tRedstone = (byte)UT.Code.scale(mDisplayedNumber = (mCurrentMax > 0 ? UT.Code.bindInt((mCurrentValue * 100L) / mCurrentMax) : 0), 100L, 15, F); break;
case MODE_FULL : tRedstone = (byte)(mCurrentValue >= mCurrentMax?15: 0); break;
case MODE_NOT_FULL : tRedstone = (byte)(mCurrentValue >= mCurrentMax? 0:15); break;
}