My patches for iio-sensor-proxy to support proximity sensors just got merged upstream: https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/merge_requests/300 - thanks hadess !
The (mostly identical) code is already live on the #librem5 with #phosh 0.2.0 making use of it.