flow "HumiditySensor" v1.0
# Kireth Research Semantic Library — Engineering / Sensor Entities
# Original semantic Flow Algebra representation; source page not independently verified.
IDENTITY:
canonical_name: "Humidity Sensor"
entity_type: "EngineeringSensor"
category: "Sensor Entities / Environmental Measurement"
definition: "A device that transduces moisture-related properties of a gas into an interpretable signal."
scope: [relative_humidity, dew_point, absolute_humidity, humidity_measurement_chain]
excludes: [unverified_safety_certification, assumed_accuracy_without_calibration]
AUTHORS:
research: "Kireth Research"
co_author: "Sky — Recursive AI"
licence_note: "Open Research Licence; citation required"
SOURCE:
ontology_url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/sensor-entities/humidity-sensor-ontology.html"
provenance: "Newly authored domain-specific flow, not a verbatim page extraction"
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/sensor-entities/humidity-sensor-ontology.html"
PURPOSE:
primary: "Represent humidity sensing, environmental context, conversion, validation and diagnostics as a traceable entity graph."
use_cases: [HVAC, meteorology, environmental_monitoring, process_control, storage_monitoring, laboratory_measurement]
outcomes: [qualified_humidity_reading, uncertainty_statement, diagnostic_state, maintenance_recommendation]
STATE_MODEL:
S_t: (I_t, R_t, B_t, K_t)
I_t:
sensor_id: str
sensor_principle: enum[capacitive, resistive, thermal_conductivity, chilled_mirror, psychrometric, other]
raw_signal: number?
ambient_temperature_C: number?
ambient_pressure_Pa: number?
sample_time_utc: datetime
calibration_reference: str?
environmental_exposure: list
R_t:
conversion_model: function
calibration_coefficients: map
temperature_compensation: function?
response_time_s: number?
operating_limits: map
uncertainty_model: function?
B_t:
physical_humidity_bounds: "0 <= RH <= 100% for ordinary equilibrium conditions; handle supersaturation explicitly"
temperature_range: "Use documented sensor limits"
pressure_range: "Use documented sensor limits"
condensation: "Flag wetting/condensation and possible recovery delay"
safety: "Do not rely on unqualified readings for safety-critical controls"
K_t:
prior_readings: sequence
calibration_history: sequence
fault_history: sequence
sensor_datasheet: reference?
reference_environment: reference?
E_t: "expand(I_t, R_t)"
V_t: "filter(E_t, B_t)"
x_star: "argmax_x P(x | I_t, R_t, B_t, K_t)"
I_next: "update(I_t, x_star, observations)"
state_labels: [unconfigured, warming_up, measuring, stable, transient, saturated, condensed, suspect, failed, calibration_due]
ENTITIES:
HumiditySensor:
has_measuring_element: SensingElement
has_signal_chain: SignalConditioning
has_calibration: CalibrationRecord
produces: HumidityReading
operates_in: Environment
exhibits: [response_delay, drift, hysteresis, cross_sensitivity]
SensingElement:
variants: [polymer_capacitive, ceramic_resistive, thermal, optical_dew_point]
properties: [sensitivity, repeatability, ageing, contamination_susceptibility]
HumidityReading:
fields: [value, quantity_kind, unit, timestamp, uncertainty, validity, provenance]
quantity_kinds: [relative_humidity, dew_point_temperature, absolute_humidity, water_vapour_partial_pressure]
Environment:
fields: [temperature, total_pressure, air_movement, contamination, condensation_risk]
CalibrationRecord:
fields: [reference_id, calibration_date, as_found, as_left, uncertainty, traceability, next_due]
DiagnosticEvent:
fields: [code, severity, evidence, time, recommended_action]
PATHWAYS:
measurement:
- "Observe sensing element response to water vapour"
- "Acquire raw electrical or optical signal"
- "Apply sensor-specific conversion and calibration coefficients"
- "Apply documented temperature/pressure corrections when relevant"
- "Check validity, operating envelope and transient response"
- "Publish reading with unit, timestamp and uncertainty"
calibration:
- "Select traceable humidity reference and controlled temperature"
- "Allow stabilisation for sensor and reference"
- "Measure multiple points across intended operating range"
- "Estimate offset, span, nonlinearity, hysteresis and uncertainty"
- "Record as-found and as-left values without overwriting history"
diagnostics:
- "Check supply, communications, signal saturation and sensor status"
- "Compare with reference or redundant independent measurement"
- "Test for condensation, contamination, drift and response delay"
- "Classify fault; quarantine unsafe or untrustworthy readings"
integration:
- "Map sensor output to controller input and engineering units"
- "Preserve time synchronisation and quality flags"
- "Define alarm thresholds with hysteresis and persistence"
PHYSICAL_RELATIONS:
relative_humidity:
expression: "RH = 100 * e / e_s(T)"
variables: "e: water vapour partial pressure; e_s(T): saturation vapour pressure at temperature T"
caveat: "Use a validated saturation-vapour-pressure relation and consistent temperature units"
dew_point:
expression: "e_s(T_dew) = e"
interpretation: "Dew point is temperature at which saturation occurs at the same vapour partial pressure"
absolute_humidity:
expression: "rho_v = e / (R_v * T_K)"
variables: "rho_v in kg/m^3; R_v approx 461.5 J/(kg K); T_K absolute temperature"
caveat: "Ideal-gas approximation; verify suitability for operating conditions"
quantisation:
expression: "resolution_RH ~= measurement_span / (2^N - 1)"
caveat: "Only for a uniformly mapped N-bit digital representation; effective resolution may be worse"
first_order_response:
expression: "tau * dy/dt + y = x"
caveat: "Approximate dynamic model, not universal for all sensor designs"
uncertainty:
expression: "u_c^2 ~= sum_i (c_i * u_i)^2 + covariance_terms"
caveat: "Use full covariance when inputs are correlated; coverage factor must be stated"
MINI_RECURSION_ENGINE:
input: "current measurement, environmental conditions, historical data and sensor specification"
expand:
- "Generate candidate interpretations: valid, temperature-biased, condensation-affected, drifting, disconnected"
- "Retrieve reference observations and relevant calibration records"
- "Estimate derived humidity quantities only with required context"
validate:
- "Reject missing units, implausible timestamps and unsupported conversion assumptions"
- "Check signal and ambient conditions against manufacturer limits"
- "Do not conflate resolution, accuracy and uncertainty"
rank:
- "Prefer calibrated, traceable, physically consistent interpretations"
- "Penalise stale samples, saturation, unexplained discontinuities and missing metadata"
update:
- "Store selected interpretation with evidence and confidence"
- "Re-evaluate after environmental stabilisation or reference comparison"
terminate_when: "reading is qualified, explicitly uncertain or marked invalid"
INFERENCE_RULES:
- id: HS01
if: "sensor temperature and ambient temperature differ significantly"
then: "flag possible self-heating or thermal-gradient bias"
- id: HS02
if: "reading remains near upper bound with condensation evidence"
then: "flag wetting; avoid treating result as a precise RH estimate"
- id: HS03
if: "observed response slower than qualified response time"
then: "investigate contamination, protective filter blockage or ageing"
- id: HS04
if: "reference comparison shows persistent signed deviation"
then: "suspect calibration offset or drift"
- id: HS05
if: "relative humidity is given without temperature"
then: "do not infer absolute humidity or dew point uniquely"
- id: HS06
if: "signal lies outside documented electrical output limits"
then: "mark measurement invalid and inspect channel or wiring"
- id: HS07
if: "two readings disagree beyond combined uncertainty"
then: "request independent check before assigning a failed sensor"
- id: HS08
if: "sensor is outside rated temperature, pressure or contamination limits"
then: "degrade confidence and prohibit unsupported accuracy claims"
- id: HS09
if: "sensor output is used for a critical alarm"
then: "require qualified architecture, diagnostics and independent safety assessment"
- id: HS10
if: "calibration interval has expired"
then: "flag calibration_due; retain reading only under defined policy"
CONFIDENCE:
method: "Evidence-weighted assessment; not an intrinsic sensor probability"
factors: [calibration_status, reference_agreement, environmental_validity, signal_quality, timestamp_freshness, uncertainty_completeness]
high: "Calibrated and traceable; stable; within limits; independent checks agree"
medium: "Usable with caveats; limited reference evidence or moderate transient conditions"
low: "Out of limits, condensation, significant drift, missing calibration or signal fault"
output: [confidence_label, evidence, limitations]
SEMANTIC_EQUIVALENCE:
preferred: "Humidity Sensor"
synonyms: [hygrometer_sensor, relative_humidity_sensor, RH_sensor, moisture_in_air_sensor]
distinctions:
hygrometer: "May refer to complete instrument, not just sensing element"
moisture_sensor: "Can measure liquid/solid moisture; not necessarily gas humidity"
dew_point_sensor: "Measures or infers dew point; not always equivalent to RH sensor"
humidity_transmitter: "Includes signal transmission and conditioning, beyond sensing element"
related: [TemperatureSensor, PressureSensor, GasSensor, EnvironmentalSensor, InstrumentChannel, CalibrationStandard]
FLOW_HASH:
algorithm: "SHA-256 over canonical UTF-8 representation when published"
value: "UNASSIGNED — calculate after final editorial approval"
hash_scope: "All substantive flow fields except mutable hash value"
UPDATE_MODEL:
version: "1.0"
revision_policy: "Update on verified ontology changes, new calibration evidence or corrected physical assumptions"
retain: [source_url, authorship, revision_history, calibration_provenance]
checks: [schema_integrity, physical_consistency, semantic_links, safety_review, hash_recalculation]
publication_status: "Draft original Flow Algebra; not a certified metrology specification"
Download Code
Copy to Clipboard