There is an old thread where what DaveX is questioning comes up, it can be found here. Note the reply of jremington post #2.
Temperature sensor module KY-013
These modules are the same, they're all on boards labelled “S1”. THE PINS ARE MARKED BACKWARDS ON THESE.
Has pin 1 (marked S) (GND), pin 2 (5v power) and pin 3 (marked -) (analog signal.)
on this site: https://wiki.makehackvoid.com/workshops:arduino:dxmodulepack
Here are the options:
While I do not have that thermistor module apparently some went one way and some the other way, right and left sides of the schematic.
Assuming a 10K thermistor and a 10K series resistor at 25C the thermistor resistance should be 10K and in either case the Vout should be 2.5 volts with Vcc 5.0 volts. Using most of the code samples I see online when I apply an accurate 2.5 VDC to my analog in pin I get 30 to 31 degrees C.
Either I am looking at all of this wrong applying 2.5 VDC and expecting 25 C. or the code samples and I tried a few, are not quite correct and accurate.
If you have a DVM I would measure the Vout of your module and note the ambient temperature Vout. Next I would heat the thermistor and note if Vout increases or decreases? That will tell you how the board is configured. If Vout increases the module is as shown on the right. If Vout decreases the left side of the schematic.
Ron