Some example Arduino Code to get you started.  Most come from: http://ardx.org/src/guide/2/ARDX-EG-ADAF-WEB.pdf