I'm getting from a Hall Effect magnetic sensor a variable voltage between 0.8 and 3V. When the voltage is less than 0.9V, I want to activate a solenoid valve. If the voltage goes more than 1V, the valve should be off. So I thought of an inverting comparator like shown below. For the voltage threshold, I will put a precision pot to carefully adjust it to let's say 0.9V. The valve is 24V/200mA. It works on the simulation. But do you think it could work well in real life? Would you make any improvement? I chose the 2N4401 BJT rated at 600mA, as my valve needs little current. Also, I'll use LM339.