# adafruit/Adafruit_Sensor

Common sensor library

Repository: https://github.com/adafruit/Adafruit_Sensor
Canonical: https://ross.abutalabs.com/products/adafruit_sensor
Language: C++
License: Apache-2.0
License Family: permissive
Topics: arduino, library, sensor, arduino-library
Last push: 2025-01-06T14:56:22+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4976, "days_push": 604, "days_rel": 604, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1064, forks 721 (observed 2026-08-28T04:03:26.434578+00:00)

## What it is
Adafruit Unified Sensor is an Arduino/C++ abstraction layer providing a common Adafruit_Sensor base class and standardized sensors_event_t data types in SI units. It lets interchangeable sensor drivers (accelerometers, gyroscopes, temperature, pressure, etc.) be swapped with minimal code changes.

## Use cases
- read accelerometer data on arduino with a unified api
- swap sensor models without rewriting embedded code
- log sensor data in standardized si units
- build a portable arduino sensor driver
- unify temperature humidity and pressure sensor readings

## When to choose
- writing Arduino sketches using Adafruit sensor breakout boards
- you want sensor-agnostic code that survives hardware changes
- building data-logging or telemetry with a single well-known sensor type

## When to avoid
- using non-Adafruit sensors with their own native drivers
- bare-metal projects outside the Arduino ecosystem
- you need direct register-level control of a specific sensor

## Facets
- artifact type: library
- maturity: stable
- function: sdk, embedded, middleware
- domain: embedded-systems, hardware, iot
- platform: embedded, cpp, iot
- tags: arduino, sensor-abstraction, adafruit, sensors-event, si-units

## Member repositories
- adafruit/Adafruit_Sensor (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:26.434578+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:55:48.207085+00:00, confidence not recorded.
  - readme: https://github.com/adafruit/Adafruit_Sensor (fetched 2026-08-28T04:03:26.434578+00:00, sha abee1acb0ef2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
