Example Code for Mind+—Get Sensor Data
This example demonstrates how to use the Mind+ platform to read sensor data from the SFA40 module, including formaldehyde (HCHO), temperature, and humidity measurements.
Hardware Prepare
- UNIHIKER K10 (SKU:DFR0992-EN) ×1
- Gravity: SFA40 HCHO Sensor(SKU:SEN0661)×1
- PH2.0-4Pin Sensor Cable (SKU:DFR0992-EN) ×1
The yellow vent membrane on the SFA40 sensor must not come into contact with organic solvents or be scratched by sharp objects.
Software Prepare
- Download Mind+: Click to download Mind+
- Gravity SFA40 HCHO Sensor User Extension: https://github.com/YeezB/ext-sfa40-hcho-sensor
- Copy, paste and search the above user extension URL in the User-Ext search box

Example code

Was this article helpful?
