Arduino firmware code for the geomotes