I received a PM asking for a 12V version of the circuit I posted back in #18 of this thread. Here it is.
The resistance of the simulated LDR (R2) is plotted as the green trace. The resistance of R2 in kΩ is proportional the voltage in kV. The red trace shows the current through the 12V relay coil. Note that with the setting of the trimpot shown (R2=90kΩ), the relay picks up as the LDR resistance increases through ~30kΩ, and drops as the LDR resistance decreases through ~18kΩ. Changing R2 effects the primarily the LDR resistance when the relay trips. R6 effects the amount of hysteresis.
View attachment 92641