Reversing the switching action, with the output going high when the input is low, can be done by applying the reference voltage to the non-inverting input, as shown in the figure. Reference resistors are calculated in the same way as in the previous case (CB4589E) and the use of the trimpot is also allowed.