The inversion of 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. The reference resistors are calculated the same as in the previous case and the use of the trimpot is also allowed.
