LM393N with hysteresis and potentiometer
You could increase R9 and R10 by an order of magnitude (22K and 1M). Increasing the resistors on the non-inverting input (eg. to 30K and 62K) would be slightly better in terms of evening out the bias current contributions.