Code for the Arduino device
Wiring