I have made a custom board out of Arduino Nano with ATmega328 (not 328p) and using a temperature sensor TMP36 (TMP36GRTZ-REEL7). Whenever I run the code, it gives me -50 Celsius and -58 Fahrenheit all the time without changing. The values are frozen on these two numbers all the time no matter of the temperature. I changed the code twice and still get the same value so I think the code is fine and there's something wrong with my hardware. Fortunately, I have 2 versions of this temperature on my board, one is a SMD and the other is a through hole. The through hole is also showing the same result. I turned it off by cutting the power line on either sensors and it's still reading -50 degrees.
Can you guys help me out please? I'll attach a schematic of my design.