Sensor Measurement Lists (SenML)

Created

  • 2018-06-01

Last Updated

  • 2026-02-02

Note

In SDF RFC 9880, a URI unit name is distinguished from a registered unit name by the presence of a colon; any registered unit name that contains a colon can therefore not be directly used in SDF.

Available Formats


SenML Units

Registration Procedure(s)

  • Expert Review

Expert(s)

  • Ari Keränen

Reference

  • RFC 8428: Sensor Measurement Lists (SenML)

Note

Units marked with an asterisk are NOT RECOMMENDED to be produced by new implementations but are in active use and SHOULD be implemented by consumers that can use the corresponding SenML units that are closer to the unscaled SI units.

Available Formats

SymbolDescriptionTypeReference
mmeterfloatRFC 8428
kgkilogramfloatRFC 8428
ggram*floatRFC 8428
ssecondfloatRFC 8428
AamperefloatRFC 8428
KkelvinfloatRFC 8428
cdcandelafloatRFC 8428
molmolefloatRFC 8428
HzhertzfloatRFC 8428
radradianfloatRFC 8428
srsteradianfloatRFC 8428
NnewtonfloatRFC 8428
PapascalfloatRFC 8428
JjoulefloatRFC 8428
WwattfloatRFC 8428
CcoulombfloatRFC 8428
VvoltfloatRFC 8428
FfaradfloatRFC 8428
OhmohmfloatRFC 8428
SsiemensfloatRFC 8428
WbweberfloatRFC 8428
TteslafloatRFC 8428
HhenryfloatRFC 8428
Celdegrees CelsiusfloatRFC 8428
lmlumenfloatRFC 8428
lxluxfloatRFC 8428
BqbecquerelfloatRFC 8428
GygrayfloatRFC 8428
SvsievertfloatRFC 8428
katkatalfloatRFC 8428
m2square meter (area)floatRFC 8428
m3cubic meter (volume)floatRFC 8428
lliter (volume)*floatRFC 8428
m/smeter per second (velocity)floatRFC 8428
m/s2meter per square second (acceleration)floatRFC 8428
m3/scubic meter per second (flow rate)floatRFC 8428
l/sliter per second (flow rate)*floatRFC 8428
W/m2watt per square meter (irradiance)floatRFC 8428
cd/m2candela per square meter (luminance)floatRFC 8428
bitbit (information content)floatRFC 8428
bit/sbit per second (data rate)floatRFC 8428
latdegrees latitude[1]floatRFC 8428
londegrees longitude[1]floatRFC 8428
pHpH value (acidity; logarithmic quantity)floatRFC 8428
dBdecibel (logarithmic quantity)floatRFC 8428
dBWdecibel relative to 1 W (power level)floatRFC 8428
Bsplbel (sound pressure level; logarithmic quantity)*floatRFC 8428
count1 (counter value)floatRFC 8428
/1 (ratio e.g., value of a switch; [2])floatRFC 8428
%1 (ratio e.g., value of a switch; [2])*floatRFC 8428
%RHPercentage (Relative Humidity)floatRFC 8428
%ELPercentage (remaining battery energy level)floatRFC 8428
ELseconds (remaining battery energy level)floatRFC 8428
1/s1 per second (event rate)floatRFC 8428
1/min1 per minute (event rate, "rpm")*floatRFC 8428
beat/min1 per minute (heart rate in beats per minute)*floatRFC 8428
beats1 (Cumulative number of heart beats)*floatRFC 8428
S/mSiemens per meter (conductivity)floatRFC 8428
BByte (information content)floatRFC 8798
VAvolt-ampere (Apparent Power)floatRFC 8798
VAsvolt-ampere second (Apparent Energy)floatRFC 8798
varvolt-ampere reactive (Reactive Power)floatRFC 8798
varsvolt-ampere-reactive second (Reactive Energy)floatRFC 8798
J/mjoule per meter (Energy per distance)floatRFC 8798
kg/m3kilogram per cubic meter (mass density, mass concentration)floatRFC 8798
degdegree (angle)*floatRFC 8798
NTUNephelometric Turbidity UnitfloatISO 7027-1:2016

SenML Labels

Registration Procedure(s)

  • Expert Review

Expert(s)

  • Ari Keränen

Reference

  • RFC 8428: Sensor Measurement Lists (SenML)

Available Formats

NameLabelCBOR LabelJSON TypeXML TypeEXI IDReferenceNote
Base Namebn-2StringstringaRFC 8428
Base Timebt-3NumberdoubleaRFC 8428
Base Unitbu-4StringstringaRFC 8428
Base Valuebv-5NumberdoubleaRFC 8428
Base Sumbs-6NumberdoubleaRFC 8428
Base Versionbver-1NumberintaRFC 8428
Namen0StringstringaRFC 8428
Unitu1StringstringaRFC 8428
Valuev2NumberdoubleaRFC 8428
String Valuevs3StringstringaRFC 8428
Boolean Valuevb4BooleanbooleanaRFC 8428
Data Valuevd8String (*)string (*)aRFC 8428(*) Data Value is a base64-encoded string with the URL-safe alphabet as defined in Section 5 of RFC 4648, with padding omitted. (In CBOR, the octets in the Data Value are encoded using a definite-length byte string, major type 2.)
Sums5NumberdoubleaRFC 8428
Timet6NumberdoubleaRFC 8428
Update Timeut7NumberdoubleaRFC 8428
LwM2M Object LinkvloStringstringOMA-TS-LightweightM2M_Core-V1_1_1-20190617-ASection 7.4.5 of the OMA LwM2M 1.1 Core Technical Specification
Base Content-FormatbctStringstringRFC 9193
Content-FormatctStringstringRFC 9193

Secondary Units

Registration Procedure(s)

  • Expert Review

Expert(s)

  • Ari Keränen

Reference

  • RFC 8798: Additional Units for Sensor Measurement Lists (SenML)

Available Formats

Secondary UnitDescriptionSenML UnitScaleOffsetReference
msmilliseconds1/10000RFC 8798
minminutes600RFC 8798
hhours36000RFC 8798
MHzmegahertzHz10000000RFC 8798
kWkilowattW10000RFC 8798
kVAkilovolt-ampereVA10000RFC 8798
kvarkilovarvar10000RFC 8798
Ahampere-hourC36000RFC 8798
Whwatt-hourJ36000RFC 8798
kWhkilowatt-hourJ36000000RFC 8798
varhvar-hourvars36000RFC 8798
kvarhkilovar-hourvars36000000RFC 8798
kVAhkilovolt-ampere-hourVAs36000000RFC 8798
Wh/kmwatt-hour per kilometerJ/m3.60RFC 8798
KiBkibibyteB10240RFC 8798
GBgigabyteB1e90RFC 8798
Mbit/smegabit per secondbit/s10000000RFC 8798
B/sbyte per secondbit/s80RFC 8798
MB/smegabyte per secondbit/s80000000RFC 8798
mVmillivoltV1/10000RFC 8798
mAmilliampereA1/10000RFC 8798
dBmdecibel (milliwatt)dBW1-30RFC 8798
ug/m3microgram per cubic meterkg/m31e-90RFC 8798
mm/hmillimeter per hourm/s1/36000000RFC 8798
m/hmeter per hourm/s1/36000RFC 8798
ppmparts per million/1e-60RFC 8798
/100percent[3]/1/1000RFC 8798
/1000permille/1/10000RFC 8798
hPahectopascalPa1000RFC 8798
mmmillimeterm1/10000RFC 8798
cmcentimeterm1/1000RFC 8798
kmkilometerm10000RFC 8798
km/hkilometer per hourm/s1/3.60RFC 8798
ppbparts per billion/1e-90CoRE-1
pptparts per trillion/1e-120CoRE-1
VAhvolt-ampere-hourVAs36000CoRE-1
mg/lmilligram per literkg/m31/10000CoRE-1
ug/lmicrogram per literkg/m31e-60CoRE-1
g/lgram per literkg/m310CoRE-1

SenML Features

Registration Procedure(s)

  • Specification Required

Expert(s)

  • Ari Keränen (primary), Carsten Bormann (secondary)

Reference

  • RFC 9100: Sensor Measurement Lists (SenML) Features and Versions

Available Formats

Feature CodeFeature NameReference
0Reserved0RFC 9100
1Reserved1RFC 9100
2Reserved2RFC 9100
3Reserved3RFC 9100
4Secondary UnitsRFC 9100; RFC 8798
5-52Unassigned

Footnotes

[1]

Assumed to be in World Geodetic System 1984 (WGS84), unless another reference frame is known for the sensor.

[2]

A value of 0.0 indicates the switch is off, 1.0 indicates on, and 0.5 indicates half on. The preferred name of this unit is "/". For historical reasons, the name "%" is also provided for the same unit, but note that while that name strongly suggests a percentage (0..100), it is NOT a percentage but the absolute ratio!

[3]

This registration does not use the obvious name "%" because this name has been taken in RFC 8428 already, where it is a NOT RECOMMENDED synonym for "/" (unity) for legacy reasons. Note that the presence of both "%" and "/100" with different meanings is likely to create confusion, so RFC 8798 adds some weight to the recommendation against using the counterintuitive unit name "%".