MCU independent code for embedded system sensors