Datasheet
filteredData(
sensornumber
);
baselineData(
sensornumber
);
It returns a 16-bit number which is the number of counts, there's no unit like "mg" or "capacitance". The baseline is
initialized to the current ambient readings when the sensor begin() is called - you can always reinitialize by re-calling
begin()! The baseline will drift a bit, that's normal! It is trying to compensate for humidity and other environmental
changes.
If you need to change the threshholds for touch detection, you can do that with
setThreshholds(uint8_t touch, uint8_t release)
By default, the touch threshhold is 12 counts, and the release is 6 counts. It's reset to these values whenever you call
begin() by the way.
© Adafruit Industries
https://learn.adafruit.com/adafruit-mpr121-12-key-capacitive-touch-sensor-breakout-
tutorial
Page 15 of 24