This application note contains a C++ sample code to implement the basic commands of I2C flow and differential pressure sensors.
The document describes a C++ sample implementation that demonstrates how to communicate with Sensirion's I2C flow and differential pressure sensors based on the SF04 chip. It includes a brief summary, revision history, and the full source code split across several header and source files.
The sample code is written for the NEC V850/SG3 (uPD70F3740) controller and uses a bit‑banging I2C implementation on normal I/O pins. The code is not optimized for speed or size, and the full source can be downloaded as a zip archive from Sensirion’s website or obtained on request.