A microcontroller gives you 9 bytes to store a single sensor reading, which consists of a temperature with one decimal place, a status flag (on or off), an error code (0–255), and a sensor ID (up to 5,000).
For each field, pick the smallest type that safely fits. Then print sizeof for each to confirm the total does not exceed 9 bytes.