For this project, Bluetooth Low Energy USB dongle called BlueIO is used, which will act as a central device to retrieve data. HibouAir will serve as a peripheral device to transmit the data. The is simple to use and can be used for other purposes such as showing real-time air quality data; temperate, humidity, pressure, particle matters etc.
The .cs file associated with this will have the following code.
Source code is available at https://github.com/smart-sensor-devices-ab/bluetooth_realtimedata_csharp
In this script, we are only showing how to plot Ambient Light Sensor (ALS) value in lux and plot it on the chart.
Details of the project
https://www.bleuio.com/blog/plotting-real-time-graph-from-bluetooth-device-using-c/
Here is a demo of this sample application.
https://www.youtube.com/watch?v=NNwn2wAMo-I