Code for the embedded system (Arduino)