added arduino-side code for the spider