I can imagine one good use: plotting graphs of inner temperature, configured set point, motor on/off status, door open/closed status, and power consumption. But that use case does not require having control of the fridge compressor...
If the temperature goes out of acceptable range than then it is defective. The only people who need that plot are the lawyers for the class action lawsuit for a defective appliance.
There are scientific reasons to need the plot, but that is not normal and they likely need a special fridge with tighter controls or something anyway.
I’d just throw an analog min/max thermometer in there and investigate if the max temp goes above 40F, sounds a lot easier than adding a temp probe and door switch to a residential refrigerator.
There is already a door switch in all the refrigerators I have used. It controls the light (at least I think it does, I have never seen the light go off:)