REM : sensor access functions ( c language) can be found at : https://github.com/davebm1/c-sense-hat
you’ll have to install :
After websocket handshaking, the RPI gets measurements with I2C bus and sends them to the client through the websocket.
for led config, have a look at : dynamic_http_server.html
Let’s use a lightweight database : sqlite3
please have a look at : https://www.enib.fr/~kerhoas/rpi_developpement.html