SparkFun Qwiic TMF882X Library


Library for the SparkFun Qwiic breakout boards for the AMS TMF882X sensor products.
The TMF882X is the latest Time Of Flight (ToF) sensor to be released from AMS. It uses a SPAD (Single Photon Avalanche Photodiode) histogram architecture to accurately detect objects from 10mm all the way to 5000 mm. That’s millimeter accuracy, with a range of 1 centimeter to 5 meters – amazing! Oh, and these sensors are multi-zone – supporting 3x3, 4x4 and 3x6 zones of operation depending on which model is being used. Available at:,

Author: SparkFun Electronics

Maintainer: SparkFun Electronics

Read the documentation


This library is compatible with all architectures so you should be able to use it on all the Arduino boards.


To use this library, open the Library Manager in the Arduino IDE and install it from there.