I wanted to build a local dashboard to visualize environmental data in real-time on my Pi 5 using the Waveshare Sensor HAT. Instead of just printing standard outputs to the terminal, I wrote a Python script to pull the raw I2C data and map it to a live UI.
It tracks VOCs, UV, Lux, Temp/Humidity, and maps the 9-axis IMU data to show exact spatial orientation (tilt, angular velocity, and total G-force). To calibrate and test the responsiveness, I ran it against a portable heater, a humidifier, and used a match to spike the VOC index.
The Deep Dive: If anyone is interested, I also put together a video breaking down the math and physics behind how these specific sensors
https://youtu.be/DN9yHe9kR5U