add arduino sketch and update cpp file