Embedded code for Smart Sensor