Suitable for detecting proximity of an object at close range the LTR-559 is great for approach detection and ambient light compensation. The range is useful to around 5cm, and this is the type of sensor you might find in a smartphone to determine if you're holding it against your head.
Stable library from PyPi:
- Just run
python3 -m pip install ltr559
Latest/development library from GitHub:
git clone https://github.com/pimoroni/ltr559-python
cd ltr559-python
./install.sh --unstable