Capacitive displacement sensors span a wide range of resolution, from the touchscreen sensors which can only detect displacement as a binary state, all the way to the sensors in semiconductor fabs ...
It may not replace ChatGPT, but it's good enough for edge projects ...