Fridge section warms while the freezer stays cold
Samsung French door and side-by-side models run Twin Cooling Plus, which gives each compartment its own evaporator. When the defrost sensor stops reporting, ice sheets over the rear freezer panel and the airflow into the fridge side drops away.
Try first: Empty the fridge and leave it unplugged with the doors open for 24 hours. If the cooling comes back and then fades again within a week, the defrost sensor or heater is the part to replace, not the compressor.