Environment & Temperature
Sensirion SHT31-DIS digital twin
±0.2 °C / ±2 %RH I2C temperature and humidity sensor with CRC-8.
VendorSensirionEnvironment & Temperature
InterfaceI2C0x44 (ADDR=LOW) or 0x45 (ADDR=HIGH)
Record Status2026-11-21rev 287d49a4a (clean tree)
Driver oracle & capability record
Driver oracle PASS: 6/6 stages passed on nucleo-f767zi; generator 0.1.0+policy.12.
| Driver reference | Sensirion embedded-i2c-sht3x driver (Sensirion's own C driver) (commit 4026a907a) (BSD-3-Clause) |
|---|---|
| Evidence standing | provisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples). |
| Datasheet accuracy basis | temperature +/-0.2 C typical (0..90 C), humidity +/-2 %RH typical (SHT3x-DIS Table 1, 2) |
| Negative control | stimulus outside the datasheet tolerance -> oracle FAIL |
| Published record | accuracy/driver-oracles-2026-11-21.json (SHA-256 dd20a19b84c9) |
Measured driver round-trip results
| Quantity | Measured | Expected | Error | Datasheet Tolerance |
|---|---|---|---|---|
TEMPERATURE_mC | 24998 mC | 25000 mC | -2 mC | ±200 mC |
HUMIDITY_m%RH | 50000 m%RH | 50000 m%RH | 0 m%RH | ±2000 m%RH |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0x2400 | MEAS_HIGH_REP | 6-byte frame | Single-shot high repeatability temp + RH + CRC-8 |
0xF32D | READ_STATUS | 0x8010 | Status word (heater, alert, checksum status) |
0x30A2 | SOFT_RESET | Write cmd | Soft reset command |
Attach with ct CLI
Shell - run firmware with SHT31-DIS
# Run compiled firmware with SHT31-DIS attached on nucleo-f767zi
ct run --json --board nucleo-f767zi --device sht31-dis build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/sht31-dis.xml tests/sht31-dis-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/sht31-dis-fault.suite.yaml
version: 1
board: nucleo-f767zi
firmware: build/app.elf
tests:
- name: sht31-dis-i2c-nack-and-bad-id
faults:
- at_ms: 30
bus: I2C1
kind: nack
address: 0x44
count: 2
- at_ms: 150
part: sht31-dis
kind: frozen_reading
expect:
console_contains: "DRIVER_FAULT_DETECTED"
exit_code: 0