@Patrik-Söderström I used this calculator.
I entered 3.3V as the input voltage and 1.0 as the output voltage. I set R2 to 330 which is a common resistor value.
I pressed "Compute" and got a value of 759 for R1:
759 ohm is not a resistor value that is available, but I looked at the values in the pack on ebay and saw that the nearest was 680. I entered that in R1 and cleared the output field:
and pressed Compute again. I now got an output of 1.078V which can be seen as close enough to 1V.
This can of course be done by hand, and is a nice educational task if you want to learn the details
The important part is the ratio between the two resistors. Try with 680,000 and 330,000 in the calculator and you'll see that you get the same output value. However, there is a third component: The LM393. It also has a resistor value. If the resistors in the voltage divider are small compared to the resistor in the LM393, the calculations will be correct. But if the resistors have about the same value as the resistor in the LM393 the calculations must take the LM393 into account. That's why 330 and 680 ohm probably works better than 330kohm and 680kohm.
A caveat with using small resistor values is that they will consume more power. This is important if the sensor is battery powered, but since the NodeMCU generally consumes too much power to run on battery anyway we can ignore the power consumption for now. As long as the resistors are at least 100ohm the used power will be less than what the NodeMCU consumes.