@ninni said in thermistor bad reading:

also I would like to report a bug. when the endstop is positioned upwards for the z axis the platter stops when it touches the endstop but if you give the command again it continues to rise ignoring that the limit switch was already pressed

The reason for that is the G1 H2 Z5 command in your homez.g file. That command tells the firmware to raise Z by 5mm, but that isn't appropriate when homing to max Z. You should probably remove the one in homeall.g too.