Arduino sketch and hardware schematics