added C++ file with code for arduino microcontroller