---
id: "air_sensor_model"
kind: "datatype"
status: "draft"
is_pii: false
name: "Air quality sensor model"
regexp: "^(?i:SDS0(?:11|18|21)|PMS[1-9]003|PMSA003|SPS30|HPM|PPD42NS|DHT(?:11|22)|BME(?:280|680)|BMP(?:180|280)|HTU21D|SHT(?:3[015]|85)|DS18B20|SPH0645(?:_MIC)?|DNMS|MQ-?\\d{1,3}|BAM[ -]?10[12]0|SEN5X|NextPM|IPS-7100)$"
categories: ["environment", "science"]
langs: ["common"]
quality: 85
url: "https://registry.apicrafter.io/datatype/air_sensor_model"
---

# Air quality sensor model (`air_sensor_model`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Model of a sensor of an air quality or weather station, as the citizen science networks Sensor.Community (luftdaten) and sensors.AFRICA name it in the sensor_type column of their archives, such as SDS011 and PMS5003 (particulate matter), DHT22, BME280 and BMP180 (temperature, humidity, pressure), SPS30, HPM, SPH0645 (noise) or MQ-7 (carbon monoxide); reference monitors such as the Met One BAM 1020 appear too. The value type of a reading is sensor_community_value_type.

- Personal data (PII): no
- Categories: Environment (protected areas, biodiversity, water, weather, emissions, waste) (environment), Scientific (science)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?i:SDS0(?:11|18|21)|PMS[1-9]003|PMSA003|SPS30|HPM|PPD42NS|DHT(?:11|22)|BME(?:280|680)|BMP(?:180|280)|HTU21D|SHT(?:3[015]|85)|DS18B20|SPH0645(?:_MIC)?|DNMS|MQ-?\d{1,3}|BAM[ -]?10[12]0|SEN5X|NextPM|IPS-7100)$
```

## Examples

- `SDS011` — Nova Fitness particulate matter sensor
- `pms5003` — Plantower particulate matter sensor, in lower case as sensors.AFRICA writes it
- `DHT22` — temperature and humidity sensor
- `BAM 1020` — Met One beta attenuation monitor
- `P2` (invalid example) — a value type (sensor_community_value_type)

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `airsensormodelbyname` (field, `common/environment.yaml`)
- `airsensormodelvalue` (data, `common/environment.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Sources

- doc: <https://sensor.community/en/sensors/>
- doc: <https://archive.sensor.community/>
- doc: <https://open.africa/dataset/sensorsafrica-airquality-archive-nairobi>

## Quality

Score 85/100. Missing: mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/air_sensor_model.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/environment/air_sensor_model.yaml>
