LM393 Positive Hystereses Calculation

Everything is working as should! When the output is 0, your voltage divider is 300k on top and 50k on bottom, with 12V should give 1,714 Volt, very close to what you are reading.

Ciao, Ale.