This was a tough one. The freezer and fridge would get warm. If I turned off and turned on it would be ok for a while then same problem. I could hear the fan and light on in the freezer. Light on in fridge, Display showed freezer at 12 fridge at 42. I changed the compressor start relay and compressor overload. Fridge improved but a soon as I used water dispenser, the fridge got warm. The symptoms didn't make any sense.
I ended up replacing the circuit board in the back of the fridge. Back in business! This was an easy install. BTW the guy at the hardware store suggested I buy another fridge. Not this handy girl:)
Don't forget to vacuum the condenser coils.