If a cabin controller must answer "occupied or not, and how many" without a camera, the short answer is a Far-Infrared (FIR) thermal array: Melexis with its MLX90642 and the People Detection Library. Its two execution modes split the firmware bill — Simple Mode sized for Cortex-M0+/M4 cores, Default (Full) Mode sized for multi-passenger counting on mainstream embedded processors. PIR modules, time-of-flight parts, floor load cells and RGB cameras each surrender privacy, still-person detection or head count somewhere along the line.
The engineering case is documented in a technical white paper built around the FIR array plus a hardware-agnostic library. Two properties decide the architecture before any tuning starts: processing stays at the edge, so no video stream is pushed to the cloud, and the sensing primitive is temperature distribution rather than reflected visible light, which means a dark cabin and a fully lit one behave the same. What this review adds is the part the paper leaves to your spreadsheet: cycles per second, RAM, mounting geometry and the failure modes that appear only inside a stainless-steel box that changes thermal background every time the doors open.
Conclusion: this is a calibrated 768-pixel analog front end feeding a deterministic logic pipeline, not a miniature camera. The MLX90642 is a fully calibrated 32x24 thermal IR array — 768 FIR pixels accessible over I2C, with the datasheet listing bus speed up to 1 MHz, noise-equivalent temperature difference quoted at 65 mK at 2 Hz refresh, and global-shutter readout (MLX90642 datasheet, Melexis). Melexis introduced the part in April 2025 as a signal-to-noise and cost reset for low-resolution thermography; the algorithm followed seven months later, going live on 4 December 2025 as a free precompiled library for registered users, explicitly optimised for ceiling-mounted sensors in space-constrained applications such as elevator cabins.
Inside, the pipeline is three stages you can reason about line by line: dynamic background suppression, separation of individual thermal blobs, and spatial tracking of those blobs across frames. No pixel map is ever rendered, so privacy-by-design is a property of the data format rather than a policy statement — a distinction that matters when a building owner's legal team, not the R&D group, is the one blocking the design.
Conclusion: pick the mode from the counting requirement, then let that pick the core. The library datasheet expresses cost as a minimum core frequency per frame rate, which is the most honest way to size a budget: Simple mode is quoted at 14 KB RAM, ~3 MHz of core-equivalent work at 8 fps and ~5 MHz at 16 fps; Default (Full) mode is quoted at ~82 MHz at 8 fps and ~164 MHz at 16 fps.
| Decision input | Simple Mode | Default (Full) Mode |
|---|---|---|
| Sized for silicon | Ultra-low-power Cortex-M0+/M4 | Mainstream embedded application cores |
| Documented footprint | 14 KB RAM | Larger — take the number from the library datasheet page, not from the Simple-mode column |
| Core-equivalent load @ 8 fps | ~3 MHz | ~82 MHz |
| Core-equivalent load @ 16 fps | ~5 MHz | ~164 MHz |
| Design output | Presence / vacancy, coarse blob | Multi-passenger counting and localisation |
| Typical cabin role | Light, fan and standby gating; "anyone aboard" interlock input | Full-cabin logic, dispatcher input, traffic analytics |
| Power story | Runs inside a battery or trickle-powered node | Assumes cabin supply, 24 V or local DC-DC |
Run the arithmetic yourself before you commit the part number. On a 48 MHz Cortex-M0+, 164 MHz-equivalent work means you cannot reach 16 fps in Full mode even if the sensor kept up, and 82 MHz-equivalent at 8 fps is already above 100% duty — Full-mode counting is an M4/M7-class or Linux-class conversation. The same 8 fps in Simple mode is roughly 6% of a 48 MHz core, which is why presence detection can ride along on the MCU that already drives the door contacts. If you genuinely need pixel-level work on a small core, that is a different budget line: we measured what 128-bit SIMD on a $2 ESP32-S3 does to a vision kernel, and vector instructions only pay off once the arithmetic density exceeds what a FIR array's 768 words can justify.
Conclusion: the array wins on the two things a cabin punishes — stationary occupants and head count — and loses on unit cost and on anything requiring identity. PIR is a change detector; it needs a delta in the field of view, so a passenger standing still in a corner is a gap in the data. That behaviour is well documented outside the elevator world: the US Department of Energy's reliability evaluation of PIR occupancy sensors in commercial buildings (energy.gov, 2022) records occupants present while lights cycle off, and TI's radar academy notes that thermal transients from HVAC or a passing heat source generate false positives.
| Criterion | FIR array (MLX90642 + library) | PIR module | Low-res ToF / dToF | RGB or IR camera | Car-floor load cell |
|---|---|---|---|---|---|
| Still person detected | Yes — absolute temperature field | No — needs motion | Mostly, if motion is expected | Yes | Yes |
| Head count above one | Yes in Full mode | No | Cluster-dependent, fragile near steel | Yes, with a model | No — weight only |
| Works in total darkness | Yes | Yes | Needs active emitter, mostly yes | No without IR illumination | Yes |
| Privacy posture | Aggregate thermal blobs | Binary flag | Depth points | Biometric-grade exposure | No image |
| Firmware cost | 14 KB RAM and 3 MHz-equivalent up to a full application core | A GPIO interrupt | Vendor driver plus clustering | NPU or DSP budget | ADC filter chain |
| Dominant failure in a steel cabin | Multipath IR reflections and background shift when doors open | Missed seated or stationary riders, HVAC drafts | Specular wash-off from polished walls | Lens soiling, tamper, lighting swings | Cannot separate a suitcase from a person |
The load cell deserves one extra note, because it is already installed. Cabin weighing hardware belongs to the safety chain — overload detection and the door-hold behaviour that follows it. A thermal sensor does not replace it and should not be argued as a replacement; it supplies what the weighing device cannot, which is a count and a position. Elevator dispatch already monetises that number: commercial presence-detection products advertise skipping floor stops once a cabin is at capacity, and ASME's own review of efficient elevator technology credits dispatch that trims redundant stops with building-level energy savings.
Conclusion: validate geometry and background behaviour on the DVK90642 development kit first, because tuning parameters cannot rescue a bad mounting position. The kit pairs the MLX90642 with pre-installed firmware running the library, so the sensor is a measured input, not an unknown. Our recommended order, adjusted from the paper's prototyping guidance:
Conclusion: watch the algorithm's distribution model and the back-end capacity, not the headline pixel count. Melexis marketing manager Joris Roels framed the December 2025 launch as removing the barriers between a proven sensor and a usable application — combining market-validated array performance with an easy-to-use algorithm so that smart buildings gain occupancy data with better privacy than a camera and lower energy use. Read commercially, that is a deliberate move: give the firmware away through the My Melexis portal and sell arrays, an arrangement that lowers the switching cost away from PIR and squeezes the low-end thermography field where rivals such as Omron's 8-pixel D6T line arrays sit on price.
On capacity: Melexis opened a wafer-test site in Malaysia in July 2024, designed with future expansion in mind (Electronics Weekly), which is the sort of back-end investment that decides whether an occupancy feature arrives in a 2026 lift controller or a 2028 one. For a team planning a design slot, the practical reading is that device lead time and library version support, not the datasheet, set your schedule. Teams that also want an evaluation playbook for the rest of the toolchain should keep the sensor bring-up and the algorithm release cadence in separate risk registers.
Usually not for presence detection. Simple mode's 14 KB RAM and ~3 MHz-equivalent load at 8 fps fit on an existing Cortex-M0+/M4 that already scans door contacts, provided the firmware has the flash headroom for a precompiled library.
That is Default (Full) Mode territory, and it is a core-selection question before it is an algorithm question: budget ~82 MHz-equivalent for 8 fps and verify blob separation against real cabin geometry on the DVK90642 before promising a count in a specification.
It perturbs the background, which is precisely what dynamic background suppression is there to absorb. Log suppressed frames during commissioning and you will know within an afternoon whether your mounting position survives the worst case.
For most building-ownership reviews, yes — the pipeline never produces an image and nothing streams. Get the data-path diagram signed off early: "thermal aggregate blobs, processed locally" is a much shorter conversation than a camera exemption.