This project captures color data using an Arduino Nano 33 BLE Sense Lite paired with an APDS9960 sensor. By applying delta encoding, it minimizes the size of the transmitted data by 15%. The data is then read over a serial connection in Python and updated on a web page in real time using FastAPI with WebSocket communication.
Take a look here