Got invalid value from MAX6675Sensor (0x7FFC)

i use esphome, d1 mini, MAX6675 and sensor k type.
I get an error Got invalid value from MAX6675Sensor (0x7FFC).
I’ve been looking for a solution for a long time and I found the problem.
so I did a little research on possible problems and came to the following conclusion.

  1. error 0x7FFC appears if the sensor is not connected to the max6675
  2. if the problem is in connecting SCK, CS, SO to D1 mini, the result is 0.0 C

the picture shows the solution to my problem. cut off the original connectors and wired directly to the MAX6675