# Sensor CSV cleaning report

- Raw SHA-256: `07773456f3c6c2f56ef29566dff83eecfcee89e2239e4af77db3836752591ed1`
- Raw data rows: **183**
- Cleaned rows: **179**
- Dropped rows: **4**

Raw rows exclude metadata, blank lines and the header. Counts can overlap across rules. The JSON log lists the one-based source line for each counted occurrence.

Measurements are checked before duplicate selection. Missing or rejected cells stay blank in the output; the pipeline performs no interpolation.

| Rule | Count | Action |
| --- | ---: | --- |
| `metadata_comments` | 3 | Skip lines starting with # outside a CSV record. |
| `blank_lines` | 1 | Skip blank lines outside a CSV record. |
| `header_normalized` | 1 | Trim and lowercase the header (count once if any name changes). |
| `extra_columns_ignored` | 0 | Ignore custom columns (count by column in the header). |
| `wrong_column_count` | 0 | Drop rows with a different field count than the header. |
| `invalid_timestamp` | 1 | Drop rows with a missing or unparseable timestamp. |
| `timestamp_normalized` | 137 | Write UTC ISO 8601 timestamps with Z; assume UTC when no offset is supplied. |
| `duplicate_timestamp` | 2 | Keep the row with the most valid readings at each UTC instant; break ties by first input row. |
| `no_valid_measurements` | 1 | Drop winning rows with both measurements missing or rejected. |
| `reordered_rows` | 126 | Sort retained rows by UTC timestamp; count rows whose positions change. |
| `temperature_c_trimmed` | 20 | Trim surrounding measurement whitespace. |
| `temperature_c_unit_removed` | 23 | Strip an optional unit suffix (°C, C) without conversion. |
| `temperature_c_missing` | 4 | Write blank for an empty field or a case-insensitive NA, N/A, NaN, null or none token. |
| `temperature_c_invalid` | 1 | Write blank for unparseable or non-finite measurements. |
| `temperature_c_out_of_range` | 2 | Write blank for readings outside [10, 45] (inclusive valid range). |
| `voltage_v_trimmed` | 17 | Trim surrounding measurement whitespace. |
| `voltage_v_unit_removed` | 20 | Strip an optional unit suffix (V) without conversion. |
| `voltage_v_missing` | 3 | Write blank for an empty field or a case-insensitive NA, N/A, NaN, null or none token. |
| `voltage_v_invalid` | 0 | Write blank for unparseable or non-finite measurements. |
| `voltage_v_out_of_range` | 2 | Write blank for readings outside [2.8, 3.6] (inclusive valid range). |
