{
  "id": "mattytrentini/micropython-person-sensor",
  "name": "micropython-person-sensor",
  "prettyName": "micropython-person-sensor",
  "description": "MicroPython I2C driver for the Useful Sensors Person Sensor",
  "version": "",
  "author": "mattytrentini",
  "license": "MIT",
  "tags": [],
  "status": "VALID",
  "official": false,
  "source": "https://github.com/mattytrentini/micropython-person-sensor",
  "updatedAt": "2026-11-22T06:02:11.449Z",
  "page": "https://checkmim.com/packages/mattytrentini+micropython-person-sensor",
  "createdAt": "2026-11-22T06:02:08.145Z",
  "submittedBy": "Matt",
  "install": {
    "mpremote": "mpremote mip install github:mattytrentini/micropython-person-sensor",
    "mip": "import mip; mip.install(\"github:mattytrentini/micropython-person-sensor\")"
  },
  "readme": "# MicroPython Person Sensor\n\nA MicroPython I²C driver for the [Useful Sensors Person Sensor](https://github.com/usefulsensors/person_sensor_docs).\nThis is a port of [Guy Dupont's CircuitPython driver](https://github.com/dupontgu/person-sensor-circuitpython),\ndistributed under the [MIT license](LICENSE).\n\n## Installation\n\n```sh\nmpremote mip install github:mattytrentini/micropython-person-sensor\n```\n\nOn a network-connected MicroPython board:\n\n```python\nimport mip\nmip.install(\"github:mattytrentini/micropython-person-sensor\")\n```\n\nThe driver uses MicroPython's I²C API and has no external dependencies.\n\n## Usage\n\nUse an I²C bus configured for your board's SDA and SCL pins. The sensor's\ndefault address is `0x62`.\n\n```python\nfrom machine import I2C, Pin\nfrom person_sensor import PersonSensor\n\ni2c = I2C(0, sda=Pin(4), scl=Pin(5), freq=100_000)  # Example pins; adapt to your board.\nsensor = PersonSensor(i2c)\nfor face in sensor.get_faces():\n    print(face)\n```\n"
}