Let the database compute compliance, so it cannot be miscalculated.
Whether a fridge temperature reading is within its safe range is a generated stored column, evaluated by Postgres from the reading and the range. Application code cannot get it wrong and cannot be persuaded to write a different answer. For a food-safety audit trail the authority has to sit at the lowest layer that a human cannot reach past.
is_in_range GENERATED ALWAYS AS (
temperature_c >= min_safe_c AND temperature_c <= max_safe_c
) STORED